The shooting was the latest among so-called insider attacks in which Afghan forces or gunmen in Afghan police or army uniforms turn their weapon on Afghan colleagues or NATO allies.
Doost Mohammad Nayab, a spokesman in southern Uruzgan province, says the attack happened last night in the provincial capital of Tirin Kot. After killing seven policemen, the attacker stole their weapons and fled in a police car.
Nayab says the shooter had Taliban connections and blamed the insurgents for the attack.