An earthquake hit the Caribbean Sea south of the Cayman Islands and north of Honduras, prompting tsunami advisories for Puerto Rico and the US Virgin Islands.