The 7.7-magnitude quake hit between Jamaica, the Cayman Islands and Cuba, prompting tsunami alerts.