Nobody was reported injured after an earthquake with a magnitude of 5.8 rattled Panama on Wednesday.

The U.S. Geological Survey initially said the tremor had a magnitude of 6.2, but later downgraded its strength.

The quake came a day after Chile was hit by an 8.2 magnitude quake that killed six people and set off a tsunami with two-metre waves.

The Panama quake was centred about 61 km south of David, Panama, at a depth of 28 km.

Panama's head of emergency services, Arturo Alvarado, said there were no reports of damage or injuries but that schools and homes in the area were evacuated as a precaution. A USGS tweet said it had received citizens' reports of light and moderate shaking.