EDITORS PLEASE NOTE - THIS EDIT CONTAINS GRAPHIC IMAGES
Police say the attack began when a suicide bomber detonated a car-load of explosives at the gate of an appeals court in Kunduz.
After that, three more fighters entered the building and engaged security forces in a long gun battle.
(SOUNDBITE) (Dari) KUNDUZ POLICE SPOKESMAN, SAYED SARWAR HUSSAINI, SAYING:
"At least six Afghan prosecutors and a policeman were killed by insurgents and nine other prosecutors and a policeman were wounded in the attack and they have been taken to hospital for treatment."
The northern city of Kunduz has long been peaceful, compared to the rest of Afghanistan.
But with NATO-led forces leaving the country after more than a decade, the Taliban has been making gains.
With Afghan forces taking over security in Afghanistan, attacks like these are increasing in number... and tensions are running high.