The earthquake's epicenter was more than 400 miles away, off the coasts of Jamaica and Cuba, but rattled parts of the Florida city.