Nearly 20 officers stood in a hallway outside the classrooms during this week’s attack on a Texas elementary school for more than 45 minutes, before agents used a master key to open a door and confront a gunman, authorities said Friday.

The on-site commander believed the gunman, 18-year-old Salvador Ramos, was barricaded in a classroom at Robb Elementary School in Uvalde during Tuesday’s attack and that the children were not at risk, Texas Department of Public Safety director Steven McCraw said at a news conference.

Mr McCraw said: “He was convinced at the time that there was no more threat to the children and that the subject was barricaded and that they had time to organise” to get into the classroom, McCraw said.

“Of course it was not the right decision. It was the wrong decision,” he said.

Texas School Shooting
Questions have mounted over the amount of time it took officers to enter the school to confront the gunman (Jae C. Hong/AP)

McCraw said US Border Patrol agents eventually used a master key to open the locked door of the classroom where they confronted and killed Ramos, who killed 19 students and two teachers.

McCraw said there was a barrage of gunfire shortly after Ramos entered the classroom where they killed him, but that shots were “sporadic” for much of the 48 minutes while officers waited outside the hallway.

He said investigators do not know if or how many children died during those 48 minutes.

Throughout the attack, teachers and children repeatedly called 911 asking for help, including a girl who pleaded “Please send the police now,” McCraw said.

Questions have mounted over the amount of time it took officers to enter the school to confront the gunman.

It was 11.28am on Tuesday when Ramos’ Ford pickup slammed into a ditch behind the school and the driver jumped out carrying an AR-15-style rifle.

Five minutes after that, authorities say, Ramos entered the halls of Robb Elementary School and found his way to a fourth-grade classroom, where he killed 19 children and two teachers in a still-unexplained spasm of violence.

But it was not until 12.58pm that law enforcement radio chatter said Ramos had been killed and the siege was over.

Texas School Shooting
A child at a memorial site for the victims (Dario Lopez-Mills/AP)

What happened in those 90 minutes, in a working-class neighbourhood near the edge of the town of Uvalde, has fuelled mounting public anger and scrutiny over law enforcement’s response to the rampage.

“They say they rushed in,” said Javier Cazares, whose daughter, Jacklyn Cazares, was killed in the attack, and who raced to the school as the massacre unfolded. “We didn’t see that.”

Friday’s update on the attack’s timeline came only after authorities declined to explain why officers had not been able to stop the gunman sooner, with Victor Escalon, regional director for the Texas Department of Public Safety, telling reporters on Thursday that he had “taken all those questions into consideration”, but was not ready to answer them.

The Thursday briefing, called by Texas safety officials to clarify the timeline of the attack, provided pieces of previously unknown information.

But by the time it ended, it had added to the troubling questions surrounding the attack, including about the time it took police to reach the scene and confront the gunman, and the apparent failure to lock a school door he entered.

After two days of providing often conflicting information, investigators said that a school district police officer was not inside the school when Ramos arrived and, contrary to their previous reports, the officer had not confronted Ramos outside the building.

Texas School Shooting NRA
Protesters outside the National Rifle Association annual meeting in Houston, Texas, on Friday (Jae C. Hong/AP)

Instead, they sketched out a timeline notable for unexplained delays by law enforcement.

After crashing his truck, Ramos fired on two people coming out of a nearby funeral home, Mr Escalon said. He then entered the school ”unobstructed” through an apparently unlocked door at about 11.40am.

But the first police officers did not arrive on the scene until 12 minutes after the crash and did not enter the school to pursue the gunman until four minutes after that. Inside, they were driven back by gunfire from Ramos and took cover, Mr Escalon said.

The gunman was still inside at 12.10pm when the first US Marshals Service deputies arrived.

They had gone to the school from nearly 70 miles away in the border town of Del Rio, the agency said in a tweet on Friday.

The crisis came to an end after a group of Border Patrol tactical officers entered the school at 12.45pm, said Texas Department of Public Safety spokesman Travis Considine.

They engaged in a shootout with the gunman, who was holed up in the fourth-grade classroom. Moments before 1pm, he was dead.

Texas School Shooting NRA
Protesters at the National Rifle Association annual meeting in Houston (Michael Wyke/AP)

Mr Escalon said that during that time, the officers called for backup, negotiators and tactical teams, while evacuating students and teachers.

Many other details of the case and the response remained murky. The motive for the massacre remained under investigation, with authorities saying Ramos had no known criminal or mental health history.

During the siege, frustrated onlookers urged police officers to charge into the school, according to witnesses.

“Go in there! Go in there!” women shouted at the officers soon after the attack began, said Juan Carranza, 24, who watched the scene from outside a house across the street.

Mr Carranza said the officers should have entered the school sooner: “There were more of them. There was just one of him.”

Border Patrol chief Raul Ortiz did not give a timeline but said repeatedly that the tactical officers from his agency who arrived at the school did not hesitate.
He said they moved rapidly to enter the building, lining up in a “stack” behind an agent holding up a shield.

“What we wanted to make sure is to act quickly, act swiftly, and that’s exactly what those agents did,” Ortiz told Fox News.

Texas School Shooting
Nineteen children and two teachers were killed (Dario Lopez-Mills/AP)

But a law enforcement official said that once in the building, the agents had trouble breaching the classroom door and had to get a staff member to open the room with a key.

Department of Public Safety spokesman Lt. Christopher Olivarez told CNN that investigators were trying to establish whether the classroom was, in fact, locked or barricaded in some way.

Mr Cazares said that when he arrived, he saw two officers outside the school and about five others escorting students out of the building. But 15 or 20 minutes passed before the arrival of officers with shields, equipped to confront the gunman, he said.

As more parents flocked to the school, he and others pressed police to act, Mr Cazares said. He heard about four gunshots before he and the others were ordered back to a car park.

“A lot of us were arguing with the police, ‘You all need to go in there. You all need to do your jobs’. Their response was, ‘We can’t do our jobs because you guys are interfering’,” Mr Cazares said.

As for the armed school officer, he was driving nearby but was not on the premises when Ramos crashed his truck, according to a law enforcement official.