A magnitude 7.1 earthquake stunned central Mexico on Tuesday, killing at least 248 people as buildings collapsed in plumes of dust.