A string of bombings in Pakistan over the past 10 days has killed more than 100 people. Town resident Mohammad Shah Baz told Reuters he was inside the judicial complex when the suicide bombers stormed it.
"I escaped towards the canteen and climbed the wall to save my life. But there were many people dead and injured," he said.
District police chief Sohail Khalid said at least one of the attackers blew himself up and another opened fire at the main entrance of the court compound before they were shot and killed.
Jamaat-ur-Ahrar spokesman Asad Mansoor claimed responsibility for the attack in a message to journalists.