MEXICO CITY — A moderate earthquake has shaken southern Mexico, rocking buildings in the capital of Mexico City and sending some frightened people into the streets.

The U.S. Geological Survey says the quake had a preliminary magnitude of 5.1 and struck at 3:17 p.m. local time Tuesday (2019 GMT) about 500 kilometers (310 miles) south of the capital. The epicenter was 8 kilometers (5 miles) northwest of the town of Xochistlahuaca in Guerrero state. It had a depth of 30 kilometers (18 miles).

Mexico City Mayor Miguel Angel Mancera reported via his Twitter account that there were no early reports of damage or injuries.

Authorities in Guerrero state didn't immediately report any damage. Guerrero state Gov. Angel Aguirre said civil protection crews at the epicenter area had reported no damage so far.