MEXICO CITY — Moderate earthquake shakes buildings in Mexico City.