andrevdh has provided a picture that will surely help, but I suggest you try the following to understand what's going on. Imagine the fish's head to be replaced by a light bulb emitting light in all directions. Trace the path of several of these rays as they refract into the air (apply Snell's law of refraction) and see what you can deduce. Start with rays that are nearly vertical (small angle of incidence) and then slowly increase the angle of incidence and see what happens to the refracted ray in air. You'll find, as andrevdh states, that after some critical angle of incidence the light from the bulb (on the fish's head) won't make it out of the water.
Then realize that the light coming from outside the water to the fish's eye must follow these same paths but in reverse.