Mexican officials said the recent spike in violence is a consequence of a “turf war” among local gangs looking to control street-level drug-dealing.