Go to a hardware store and buy a dounut magnet. Tie a string to it and drop it down the waste pipe. Hopefully you'll be able to retrieve the bolt.
Alternatively, remove the magnet from an old audio speaker. Magnets from 8" speakers are quite strong. Put it in a woman's nylon stocking and tie a string securely to the stocking, then cut the excess stocking off.