A Pacific Ocean earthquake with a 7.2 magnitude shook El Salvador and Nicaragua on Thursday, officials said, an hour after a powerful hurricane hit Nicaragua's Caribbean coast.

The temblor occurred around 120 kilometers (75 miles) off the coast of El Salvador, at a depth of 33 kilometers (20 miles), according to the US Geological Survey, confirming the magnitude given by Salvadoran officials. Shaking was also felt in the Nicaraguan capital of Managua.

There were no immediate reports of damage or casualties.