A boat went to his aid after he made a mayday and let off flares off the Dorset coast, near Swanage.