The attacks came as Mexican President Claudia Sheinbaum has spent months grappling with how to address endemic criminal violence in Mexico.