The attack took place as people gathered for Friday prayers in the Ghorbandi area of the Puli Khumri district in Baghlan some 230 km (142 miles) north of the capital, Kabul.
Mohammad Laiq, a worshiper who escaped the bombing unscathed, said 18 people were injured in the blast.
No individual or group has claimed responsibility for the attack yet.
On October 30, at least six people were killed and four others injured in a mortar attack by members of the Takfiri Daesh militant group against a mosque in the troubled Nangarhar province.
As many as 29 people, including senior local government officials, were injured on July 13, when a bomb blast struck a mosque in Baghlan’s provincial capital city of Puli Khumri, as a large number of people gathered for a public fast-breaking ceremony.