The attack in a market near Acapulco’s main tourist avenue left four men and a woman dead, officials said.