Luckily your tank is small so its easy. Pull the rocks out and drain the water to just a few inches. Use a tank divider to split the tank and herd the fish to a corner where you can scoop it out.
You probably don't want to pull the rocks out, but its the easiest and fastest way