The Israeli Ynet news site says the soldiers were in a community centre in a village
Atahullah Khogyani, a spokesman for Nangarhar province’s governor, said a boy set off his explosives inside the house of a pro-government militia commander in Pacheragam district.
Pro-government militias often work with overstretched Afghan security forces to prevent territories falling into the hands of the Taliban and Islamic State fighters.
Last month, Taliban militants killed at least 26 members of a pro-government militia in northern Afghanistan.