The incident has taken place at Kotal-e-Surkh outpost in Pul-e-Khumri on Wednesday night.
Mohibullah Habib, head of the provincial public told Ariana News that seven dead bodies and five wounded individuals were taken to the hospitals from the attack.
Provincial security officials yet to make a comment on the matter.
Meanwhile, at least 13 Taliban militants were killed in a clash with the Afghan forces in southern Kandahar, the Defense Ministry said.
According to the ministry, the clash broke out after the insurgents attacked an army outpost in the Mianshin district of the province late on Wednesday night.
The Taliban militant group has not made a comment in this regard.
It comes as on Tuesday night, at least 13 Taliban militants were killed and 12 others wounded in clashes with Afghan security forces in Zherai and Takhta pul districts of the province.