Remove all ambient light by turning off lights, tv, etc.
Turn off camera flash.
Manually focus on an area of the tank where the fish usually are (half pressing the shutter button is the normal method for manual focus).
Sit and wait for the fish to swim past.