The mayor, who was linked to President Claudia Sheinbaum's left-wing party, had already survived an armed attack in January.
The city is located in the state of Morelos and is part of a region around the capital, Mexico City, where several drug cartels are active.
Nearly 100 mayors have been murdered in Mexico in the past 20 years, according to AFP.





