A moderate earthquake shook buildings in Mexico City on Monday, sending people running into the street for safety, but authorities said there were no initial reports of damages.