A captain in El Salvador's army was killed at his home near this capital, the Attorney General's Office said Tuesday.

Capt. Carlos Manuel Moran Martinez was attacked by two people while inspecting his vehicle outside his home in Santa Tecla, 12 kilometers (7.5 miles) southwest of San Salvador.

He died later at a hospital in Santa Tecla, the AG's office said on Twitter.

Moran, an engineer assigned to the armed forces general staff, was on leave at the time of the fatal incident. The Defense Ministry issued a statement lamenting the captain's murder and pledging to collaborate with the investigation.

Separately, two gang members were wounded Tuesday after initiating a confrontation with a police patrol in the central town of Tapalguapa, the AG's office said.

Some factions of El Salvador's violent youth gangs are pursuing a strategy of "directly attacking police, military personnel and public employees, this with the objective of pressuring the new administration, which takes office in June," the Ministry of Justice and Security said last week.

Two police officers and a prison employee have been slain in the past few weeks, while four other cops were wounded in clashes with gang members.

Police have documented 47 attacks on officers so far this year, compared with 30 during the same period of 2013.

The country's two largest gangs, Mara Salvatrucha and Mara 18, agreed in March 2012 on a truce credited with cutting El Salvador's murder rate by more than half: from 14 homicides a day to 5.3.

The rate has since climbed back to 9.9 murders per day, according to the medical examiner's office. EFE