Panicked children called 911 at least half a dozen times from the Texas classrooms where a massacre was unfolding, pleading for police to intervene, as some 20 officers waited in the hallway nearly an hour before entering and killing the gunman, authorities said on Friday.
At least two children called the 911 emergency number from connecting fourth-grade classrooms after 18-year-old Salvador Ramos entered with an AR-15 semi-automatic rifle, according to Colonel Steven McCraw, director of the Texas Department of Public Safety.
Ramos killed 19 children and two teachers.
"He's in room 112," a girl whispered on the phone at 12:03 p.m., more than 45 minutes before police went into the classroom.
The on-site commander, the chief of the school district's police department in Uvalde, Texas, believed Ramos was barricaded inside and that children were no longer at risk, giving police time to prepare, McCraw said.
"From the benefit of hindsight where I'm sitting now, of course, it was not the right decision," McCraw said. "It was the wrong decision."
It was unclear whether the content of the 911 calls was shared with officers at the scene, McCraw said. Ramos fired more than 100 rounds in the first few minutes of his attack, and there was "sporadic" gunfire during the time that police were waiting to engage him, he said.
Some of the mostly 9- and 10-year-old students trapped with the gunman survived the massacre, including at least two who called 911, McCraw said, though he did not offer a specific tally.
There were at least eight calls from the classrooms to 911 between 12.03pm, a half hour after Ramos first entered the building, and 12.50pm, when police entered and killed Ramos.
A girl whom McCraw did not identify called at 12.16pm and told police that there were still "eight to nine" students alive, the colonel said. Three shots were heard during a call made at 12.21pm.
The same girl who made the first call pleaded with the operator to "please send the police now" at 12.43pm and 12.47pm.
Officers went in three minutes after that final call, according to McCraw, when a US Border Patrol tactical team used a janitor's key to open the locked door and fatally shot Ramos.
Several officers had an initial exchange of gunfire with Ramos shortly after he entered the school at 11.33am, when two officers were grazed by bullets and took cover. There were as many as 19 officers in the hallway by 12.03pm, McCraw said - when the first 911 call from inside the classroom was received.
Videos that emerged on Thursday showed frantic parents outside the school, urging police to storm the building during the attack, with some having to be restrained by police.
Standard security protocols advise police to confront an active school shooter without delay, a point McCraw acknowledged on Friday.
McCraw described other moments when Ramos might have been thwarted. A school officer, responding to calls about an armed man who crashed a car at the funeral home across the street, drove right past Ramos, who was crouched beside a vehicle on school property.
The door that gave Ramos access to the building had been propped open by a teacher, McCraw said.
NRA convention
The attack, the deadliest school shooting in nearly a decade, has intensified the long-standing national debate over gun laws.
Elsewhere in Texas on Friday, the National Rifle Association, the country's leading gun rights advocacy group, opened its annual meeting in Houston. Prominent Republicans, including former US president Donald Trump and US senator Ted Cruz of Texas, were expected to address the convention.
Republican Texas governor Greg Abbott, who had also been scheduled to speak, will instead provide recorded remarks and head to Uvalde for an afternoon news conference.
US president Joe Biden, a Democrat who has urged Congress to approve new gun restrictions, on Sunday will visit the community of 16,000 people about 130km west of San Antonio.
Investigators are still seeking a motive. Ramos, a high school dropout, had no criminal record and no history of mental illness.
His assault began at the home he shared with his grandmother, when he shot her in the face and fled towards the school. She remains hospitalised.
Survivors described a horrific scene inside their classroom after the gunman entered. One boy told a CBS affiliate in San Antonio that Ramos said, "It's time to die," while an 11-year-old girl told a CNN affiliate she smeared the blood of a classmate on herself to appear dead.
The gunman's father, also named Salvador Ramos (42) expressed remorse for his son's actions in an interview published Thursday by news site The Daily Beast.
"He should've just killed me, you know, instead of doing something like that to someone," the elder Ramos told the site.