Taliban insurgents have killed at least 26 Afghan troops and injured 30 more during an attack on an army base in the country’s southern Kandahar Province.

General Dawlat Waziri, a spokesman for the Afghan Defense Ministry, said on Wednesday that the militants “attacked an army camp in the Karzali area of the Khakrez district of Kandahar last night.”

According to Waziri, the Afghan soldiers “bravely resisted” and killed more than 80 of the attackers.

According to Afghan media on Wednesday, more than 50 Taliban insurgents were also killed in Baghlan-e-Markazi district of northern Baghlan Province during clashes with Afghan soldiers on Tuesday night.

During the operation, which was launched eight days ago in a bid to clear the area of militants, more than 20 villages were purged of Taliban militants.

Nearly 70 Taliban militants also sustained injuries in the operation.

“The Taliban are on the run from the district after suffering heavy casualties,” said Deputy Defense Minister General Shoaor Gul.

Afghanistan has been fighting insecurity since 2001, when the U.S. and its allies invaded the country as part of their so-called war on terror. Many areas are still plagued by militancy despite U.S. invasion which aimed at annihilating the terrorist group.

ISIS has also managed to gained a foothold in Afghanistan in recent years.