Patience!
If you sit there long enough with the camera roughly in focus they'll eventually line up for a shot (hopefully).
Depending on the type of camera you have and amount of light available it's generally best to try to move the camera along with the fish at the same speed to prevent blurring.