The officials further added that the incident took place in the vicinity of Chaparhar district on Friday.
The provincial government media office in a statement confirmed the incident and death of five militants during the clashes.
The statement further added that the clash broke out in the vicinity of Ghulam Dak area.
At least three ISIS militants and two Taliban insurgents were among those killed, the provincial government said.
The statement by the provincial government also added that a Taliban insurgent has joined peace process by handing over a pistol, a AK-47 assault rifle, and three hand grenades.
According to the officials, the Taliban insurgent joined peace process in Dur Baba district.
The anti-government armed militant groups including the Taliban and ISIS loyalists have not commented regarding the report so far.
Nangarhar is among the relatively calm provinces in eastern Afghanistan but the anti-government armed militant groups have recently increased their insurgency activities in some parts of the province during the recent years.
Both the Afghan and US forces conduct regular operations and airstrikes against the militants operating in this province, specifically the ISIS terrorist group which attempts expand their foothold in the restive and remote districts of Nangarhar.