The local officials in eastern Nangarhar province confirm that the coordinated attack on Customs Department in Jalalabad city ended with the elimination of the remaining six militants.
A gun battle continued for several hours with around a dozen attackers who ran into the building with machine guns and rocket propelled grenades.
ISIS has claimed responsibility for an attack on a government building in Afghanistan on Sunday, the group's Amaq news agency said without providing any evidence.
It was the latest deadly violence to strike Afghanistan as militant groups step up attacks and US-backed Afghan forces intensify air strikes and ground offensives. The battle took place inside a building which houses the state accounts office.
The Taliban have seized control of districts across the country, and the two groups have carried out attacks in the Afghan capital, Kabul, in recent months that killed scores of people.
Manchester City's record breaking season by the numbers
City have won an incredible 32 times in the Premier League - two ahead of Chelsea from last season. Swansea paid tribute to long-serving custodians Angel Rangel and Leon Britton before kickoff.
Security forces have cordoned off the area for precautionary measures. That attack, also claimed by Daesh, followed much the same pattern as Sunday's incident.
Earlier, he said there had been two explosions.
Public health officials said that at least 15 people, including a child, had been killed and 42 wounded. However, the Taliban is now taking part in its annual spring offensive and has launched a number of attacks in recent weeks.
Last year, U.S. stepped up its support to struggling Afghan forces, announcing plans for thousands of additional advisers and increasing air strikes in a bid to force the Taliban to enter peace negotiations.
- Misuderstandings over, Modi says in Nepal visit
- Britons kidnapped in DR Congo gorilla sanctuary 'relieved' to be released
- Goalie Makes 94 Saves In Longest Game in AHL History
- Co-founder Sachin Bansal quits Flipkart following Wallmart takeover
- Potential Panthers buyer recruiting Peyton Manning to ownership group
- Palestinian killed and hundreds wounded in "Great Return March"
- Trump berates DHS Secretary Kirstjen Nielsen over border security
- SBI investigating viral video of NC officer putting man in chokehold
- Global Markets: Oil soars after Trump dumps Iran nuclear deal, stocks gain
- Yates soars into Giro lead, Chaves wins stage