Security forces killed three suicide attackers who attempted to wreak havoc at a local court in Khyber Pakhtunkhwa’s Charsadda district, officials said Tuesday.

DSP Charsadda Fayaz Khan said five civilians have been killed in the attack, which the proscribed Jamaat-ul-Ahraar (JuA) has claimed.

Provincial government sources said one lawyer is among those killed and 15 others are injured.

At least three attackers attempted to enter the court premises through the main gate. They opened fire and also threw hand grenades, prompting retaliatory fire by police and security forces deployed at the court.

One bomber was killed in the firing at the gate, whereas the second was killed as he entered the court. The third bomber was killed when he detonated his explosives.

Eyewitnesses said the remains of the bombers were lying on the roadside along with their explosives and ammunition.

Town resident Mohammad Shahbaz 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.

It was not immediately clear how many people were inside, but hundreds of people including lawyers, judges and citizens normally attend such district court complexes every day.

Upto 10 ambulances were dispatched to Charsadda from Peshawar, where the Lady Reading Hospital has been put on high alert.

Pakistan Tehreek-i-Insaf (PTI) Chairman Imran Khan, whose party rules in KP, lauded quick action by the police that averted a higher death toll.

Army Chief Gen Qamar Javed Bajwa also praised the security personnel’s response to the attack, DG Inter-Services Public Relations (ISPR) Asif Ghafoor said in a tweet.

The attack comes as security has been heightened across KP and the country after the recent wave of terror.