A tourist was injured in a shark attack after attempting to interact with the apex predator for a photo opportunity, Caribbean authorities say.