Gunmen attacked the state prosecutors’ office in this Caribbean resort city Tuesday, and authorities said four people were killed, ratcheting up tensions just a day after a shooting at a music festival in a nearby town left three foreigners and two Mexicans dead.