In addition to the bottle trap, if it's not emergent, you can use the feeding trick. Put the food in either a specimen container or a net. Put that into the tank, and let the fod float out of it. Eventually, the fish will associate the net/container with food, and they'll swim right up to it (and often into it).