A moderate earthquake struck central Mexico Friday , forcing residents and office workers to evacuate buildings in Mexico City .