JALALABAD, Afghanistan — Five Islamic State gunmen stormed the Save the Children office in the eastern Afghan city of Jalalabad after an explosion on Wednesday, killing five people and wounding dozens in a 10-hour siege, officials said. The assailants were killed.

Save the Children, a global charity that provides aid in 120 countries, said it had suspended all Afghanistan operations. It had been working in 16 of Afghanistan’s 34 provinces, reaching more than 700,000 children.

“We remain committed to resuming our operations and lifesaving work as soon as possible,” Save the Children said in a statement.

The Islamic State’s local affiliate in Afghanistan claimed responsibility for the attack, according to the group’s Amaq news agency. As the group’s foothold in eastern Afghanistan has come under pressure from sustained Afghan military operations and American air power, it has increasingly claimed urban attacks.