The officials further added that the Special Forces arrested the two militants during a raid in Chahar Bolak district of Balkh.
The Special Forces also destroyed a small cache of weapons during the same raid, the officials added.
The Taliban group has not commented regarding the raid so far.
The security situation in northern Balkh province has deteriorated during the recent months.
Taliban militants are active in remote and restive areas of the province and often conduct terrorist related activities.
Meanwhile, the Afghan forces routinely conduct counter-terrorism operations against the anti-government armed groups in this province.