According to the local security officials in Baghlan, the attack on Juma Kandak military base was launched around 5 pm local time in Pul-e-Hashim Khan area.
The officials further added that the attack was repulsed at around 9 pm local time and at last two Taliban insurgents including a commander of the group were killed.
The slain Taliban commander has been identified as Qari Bilal brother of Mullah Younis and Qari syed Jan, the officials said, adding that 4 others were wounded.
The Taliban insurgents group has not commented regarding the report so far.
Baghlan is among the relatively volatile provinces in norht of Afghanistan where the Taliban insurgents are actively operating in a number of its remote districts.
The Taliban-led insurgency has been rampant since the group announced its spring offensive earlier this year and the group attempts to expands its insurgency in northern provinces of the country.