In a statement issued through the group’s Amaq news agency, Islamic State said it was also behind Monday’s attack.
In Kabul, security officials said the explosion was caused by a suicide bomber who approached the agency’s entrance on foot before blowing himself up. All the casualties reported were of civilian passersby.
Najib Danish, a spokesman for the interior ministry, said at least five people had been killed and two wounded.
Islamic State’s local affiliate, which first appeared in eastern Afghanistan near the border with Pakistan in early 2015, has become increasingly active and has claimed several recent suicide attacks in Kabul.
It has frequently fought Taliban militants and has been heavily targeted by U.S. air strikes and Special Forces operations in its main stronghold in Nangarhar province.
But there remains considerable uncertainty about how the group operates and the exact nature of its connections with Islamic State in Iraq and Syria.
More about: #Islamic-State