A massive 8.1-magnitude earthquake has struck off the coast of southern Mexico, toppling houses in Chiapas state, causing at least five deaths and triggering a tsunami warning.