A magnitude seven point four earthquake has struck off the coast of Chiapas, Mexico. A tsunami warning has been issued for the area.