The Ministry of Defense (MoD) said the airstrike was carried out in Wata Pur district of eastern Kunar province.
Meanwhile, the 201st Silab Corps of the Afghan National Army, said the airstrike was carried out by the US forces using an unmanned aerial vehicle.
A statement by 201st Silab Corps said Shafiq was a commander of the Taliban group and was involved in major terrorist activities in Wata Pur district.
The loyalists of the terror group have recently started operations in the restive Kunar province which comes as the terror group received major blows in some of their strongholds in eastern Nangarhar province.
This comes as the local officials in Nangarhar said Sunday at least 8 ISIS loyalists were killed in an airstrike in Achin district.
The Afghan forces have stepped up operations to eliminate the loyalists of ISIS in Afghanistan amid concerns the terror is attempting to expand foothold in the country.
The militants of the terror group were hardly hit by the US airstrikes as well as the Afghan air and ground operations in parts of Nangarhar province amid concerns that they were establishing a regional operations base and consolidate operations with the terror group based in Syria and Iraq.
Hundreds of militants loyal to the terror group were killed or wounded as US Air Force increased air raids which followed by more authorities granted by the Obama administration earlier this year.