A magnitude 6.3 earthquake struck near coast of Chiapas in Mexico, the German Research Center for Geosciences (GFZ) said.