A magnitude 7.4 earthquake struck near the coast of Chiapas, Mexico, triggering a tsunami warning affecting Guatemala and El Salvador.