The commercial pilot was conducting an aerial observation flight over the Atlantic Ocean looking for Cuban rafters. A boat was spotted with people waving as if they needed assistance. The pilot elected to make a low pass and drop a radio to the boat so they could communicate. The pilot descended to about 20 feet and collided with a mast on the boat. The pilot diverted to an airport and landed without further incident.