The NDS Special Forces killed one terrorist and detained two others during an operation in Herat province.
The National Directorate of Security (NDS) in a statement said the terrorists originally hail from Punjab province of Pakistan.
The statement further added that the three terrorists, Mohamad Hakim alias Bilal son of Obaidullah, Rafiullah and Rauzuddin, were fighting for the Taliban leader Mullah Wakil Ahmad Osmani.
NDS also added that Mullah Osmani is actively involved in terrorist related activities in Kerkh district of Herat and bordering regions between Herat and Badghis.
The National Directorate of Security (NDS) also released a video confession of one of the detained terrorists.
The militant briefs the intelligence operatives regarding his recruitment to Taliban ranks and travel to Afghanistan.
The Taliban group has not commented regarding the killing and detention of the Pakistani militants so far.