Five civil servants, three police officers and a trainee are among those killed. Twelve police officers and nine aspirants were injured.
Since the military had been deployed were killed, the remaining two perpetrators and the area was secured.
The pakistani taliban movement TTP says to be behind the attack.
The mineral-rich area has a long history of religious, political, economic and ethnic conflicts. In addition, it is being used by smugglingsligor, not least the groups transporting drugs.