US military strike with a weapon known as the "mother of all bombs” killed 36 IS militants and destroyed their base.
The 21,600lb (9,800kg) bomb was dropped on a tunnel complex used by so‑called Islamic State in Nangarhar province.
No civilians were affected by the explosion, the ministry said.
Former Afghan President Hamid Karzai has condemned the attack as "an inhuman and most brutal misuse of our country”.
The strike followed last week's death of a US special forces soldier fighting IS in Nangarhar.
The news also came hours after the Pentagon admitted an air strike in Syria mistakenly killed 18 rebels.
Source: BBC