Militants in northeast Afghanistan killed 18 police in an ambush, the interior ministry said Friday, as the nation's security forces struggle to thwart the Taliban with decreasing assistance from international troops.

The police convoy was caught in a firefight in the remote province of Badakhshan on Wednesday when officers were returning from an anti-insurgent operation.

The attack will heighten concern that Afghan forces cannot provide security across the country, where a US-led invasion ousted the hardline Taliban regime in 2001.

"The acting interior minister is deeply saddened about the killing of 18 policemen and wounding of 13 others in a terrorist attack in Warduj district of Badakhshan," a statement from the interior ministry said.

"A group of Afghan police forces on their return from a clean-up operation on the outskirts of Warduj district faced an enemy ambush and it resulted in the killing of brave Afghan policemen."

The mountainous northeast of Afghanistan is far from the Taliban heartlands of the south and is relatively peaceful.

But Taliban militants killed 17 captured Afghan soldiers in the same district in March. The men were taken hostage while guarding a convoy.

Afghanistan's 350,000-strong security forces are suffering a steep rise in casualties as the NATO combat mission winds down and Afghan authorities try to impose stability ahead of the presidential election due in April.

Last month 22 police were killed when hundreds of fighters ambushed a police and military convoy in the eastern province of Nangarhar.

The Afghan government declines to release exact figures, but the US department of defence has said that about 400 Afghan police officers and soldiers are killed every month in action.

When the 87,000-strong international military coalition fighting alongside Afghan forces withdraws by the end of next year, the ability of local troops to control the insurgents is seen as key to the country's stability.

The interior ministry said 47 insurgents were killed and 20 others were wounded in recent efforts to clean Warduj district of militants.

A former Afghan lawmaker and district governor in the north said Thursday he had defected to the Taliban as the Islamist hardliners seek to strengthen their influence before the end of international combat operations.

Qazi Abdul Hai was a senator in the upper house of parliament for the province of Sar-e Pol between 2004-08 and had also served as a district governor.