"Gunmen wearing Afghan army uniforms have launched a complex attack on an army compound in the outskirts of Mazar- e-Sharif",capital of Balkh province, ministry spokesman Dawlat Waziri told AFP.
At least one armed man continues to resist, he said, with another killed and a third arrested. He could not confirm how many attackers there were in total.
"So far we have counted eight dead and eleven wounded, all military, there are no civilian casualties," General Waziri said.
General Mohmand Katawazi, the provincial corps commander, confirmed gunfire was continuing, and said one attacker had blown himself up in the assault.
Several military helicopters were hovering over the site and ambulances were evacuating the bodies of the victims, an AFP correspondent said.
In a statement the Taliban claimed responsibility for the operation.
The last major attack against a military site dates back to early March, a coordinated hours-long assault on the country's main military hospital in Kabul.
Officials said around 50 people were killed, though credible sources said it was more than double that.
That operation was claimed by the Islamic State group.
(This story has not been edited by Business Standard staff and is auto-generated from a syndicated feed.)