The attorney general's office yesterday said through its official Twitter account that the battle involving members of the Barrio 18 gang occurred in a rural area in the department of Cuscatlan northeast of San Salvador.
The agency initially said two police officers were killed and two seriously wounded, then updated that to say three officers had died. The national police also confirmed that figure, but later said only two were dead after the director of the force visited the scene. The attorney general's office also reverted to two dead officers.
Combined police and military forces scoured the area looking for those responsible.
A total of 15 police officers have been slain in El Salvador this year.