According to the TOLOnews broadcaster, the operation was held in the villages of Sor Kariz and De Babay in the largest Afghan province of Helmand on Wednesday night.
At least four militants were killed, while another one was detained during the operation. The security forces also seized 10 motorbikes belonging to the militants, the news outlet added.
In addition, at least 17 Daesh militants were killed during a drone strike carried out by foreign troops in Afghanistan's eastern Nangarhar province, according to the TOLOnews broadcaster. The airstrike targeted Daesh shelters in Nangarhar's De Bala district, the media said.
Afghanistan has long been in a state of political and social turmoil, with government forces fighting the continuing Taliban insurgency. Other extremist groups, such as the Daesh* terrorist group, have also expanded their activities both in the country and neighboring states.
*Daesh (also known as ISIS/ISIL/IS) is a terrorist group banned in Russia