Tunisian police "deliberately and unjustifiably" delayed their arrival to the scene of the Sousse terrorist attack in which 30 Britons were killed, the inquest into the June 2015 massacre has heard.
Samantha Leek QC, counsel to the inquest, said a report by Tunisian Judge Akremi had identified failings by local units that could have ended the slaughter earlier.
Police arrived and shot extremist Seifeddine Rezgui Yacoubi dead after he had claimed the lives of 38 tourists on the beach outside the five-star Riu Imperial Marhaba Hotel.
The hearing packed with relatives of the victims at the Royal Courts of Justice in London heard an unnamed interior minister had told the judge some Tunisian security officers stalled on purpose.
He said the units that should have intervened in the events deliberately and unjustifiably slowed down to delay their arrival at the hotel.
They had the ability to put an end to the attack before the police arrived but wasted a considerable amount of time in getting to the hotel.
The inquest into the deaths of 30 Britons heard that lives could have been saved and the slow response of security "amounts to an offence".
Lisa Burbidge was among 30 Brits killed in the Sousse terror attack in June 2015 - but her friend survived by hiding in a toilet.
James McQuire died after the ambulance he was in sat motionless outside a hotel for 20 minutes, an inquest into the Sousse attack heard.