Gunmen in a truck pulled up to a bar in central Mexico and opened fire, killing 10 people, authorities said, in an area that had been spared the worst of the country's raging criminal violence.