The victim, Armando Lugo Hernandez, died when a beam fell on him during the shaking in the community of San Andrés Huaxpaltepec, according to El Universo.
Some buildings sustained visible exterior cracks, but there were no reports of significant damage from the quake, which struck at 2:22 a.m. local time.
Many residents and hotel guests spent the early morning hours outside as buildings were inspected and fears of aftershocks faded.
The U.S. Geological Survey placed the epicenter of the temblor about 80 miles west-southwest of Oaxaca and 220 miles south-southeast of Mexico City.
It struck at the extremely shallow depth of only 3 miles, according to the agency.