In some parts of Afghanistan, fearful locals are taking the law into their own hands to confront Taliban violence, which has become relentless despite ongoing peace talks.

While instances of vigilante justice have been praised by some villagers, experts are warning it could signal a further breakdown in security.

The case of Mustaqeen Khan is one recent example. Khan, a lieutenant in the Afghan forces, was on his way home on Friday March 12, after attending weekly prayers at the local mosque in Mahmoodraqi, Kapisa province northeast of Kabul.

The security officer was killed and his brother injured in a Taliban ambush.

It could have been one of many assassinations that have plagued the country in the past year, despite ongoing peace talks.

However, unlike in countless other cases —where such killings go unclaimed and uninvestigated — the residents of Mahmoodraqi were able to capture the two gunmen involved in the murder of Lt Khan.

“Before police arrived at the scene of the crime, some locals had caught and beat up the attackers,” said Shaayeq Shoresh, spokesperson of Kapisa police.

“Very soon the mob grew to a few hundred people and they hung the attackers upside down from a tree and killed them.”

The incident was corroborated by Ahmad Naweed, a local vendor who was also leaving the mosque and witnessed the events.

“We saw the two men who killed the officer; they were on a bike but people surrounded them. They started beating them with anything they could get their hands on. They hung them on the tree and kept beating them,” he said.

“The mob was angry, and it was hard for the police to act, or control the people or arrest the attackers,” Mr Shoresh said.

An investigation into the incident was under way, he said.

The mob attack was condemned by the Taliban, who claimed the assassins were their fighters, a rare admission of guilt coming from the insurgent group.

Read full report on The National