The attack comes just a few days before Mexicans go to vote in a general election and follows a string of election-related attacks.