The Afghan Intelligence, National Directorate of Security (NDS), in a statement said the raid was conducted by the Special Forces of the agency in Khugyani district.
The statement further added that two weapons depots of the terror group were also destroyed during the same operation.
The military sources had earlier reported that twenty Taliban militants were killed and two others were detained during the operation.
The anti-government armed militants including Taliban have not commented regarding the operation so far.
Nangarhar has been among the relatively provinces in East of Afghanistan but the security situation in some of its remote districts has started to deteriorated during the recent years.
Both Taliban and ISIS militants are active in some of the restive districts of the province and often attempt to carry out terrorist related activities against the government and security institutions.