The quake struck at a depth of 10 km in waters west of Havana, according to the U.S. Geological Survey