No group immediately claimed the responsibility for the attack, but the increasingly violent Islamic State group affiliate is headquartered in eastern Afghanistan and is enemies of the country's new Taliban rulers.
It wasn't reported whether Taliban members were among the dead and injured.