A magnitude 5.0 earthquake has hit southern Oaxaca State, Mexico, though no casualties have been reported.