(NEXSTAR) – In a press conference Wednesday, Gov. Greg Abbot laid out a timeline of events that led to Tuesday’s mass shooting at a Texas elementary school that took the lives of 19 children and two teachers.

Abbott said the 18-year-old gunman first shot his grandmother in the face. When she called police, he fled and got into a crash outside the Robb Elementary School in Uvalde, the governor said. At the school, the suspect was approached by district police officers, Abbott said. Then he ran into the school, entering through a backdoor, through hallways and into a classroom.

That classroom was internally connected to a second classroom, Abbott said.

The gunman barricaded himself in the room and “began shooting anyone that was in his way,” authorities said Wednesday. Law enforcement officers eventually broke into the classroom and killed the gunman, who used an AR-style rifle.

As Gov. Abbott finished his prepared remarks, former presidential candidate and current gubernatorial candidate Beto O’Rourke approached the stage and could be heard telling the governor, “You are doing nothing.” He was shouted down by the collection of speakers on stage and escorted outside.

Police and others responding to Tuesday’s attack also went around breaking windows at the school to enable students and teachers to escape, Lt. Christopher Olivarez of the Texas Department of Public Safety said on NBC’s “Today” show. Olivarez told CNN that all of the victims were in the same fourth-grade classroom.

The killer “barricaded himself by locking the door and just started shooting children and teachers that were inside that classroom,” he said. “It just shows you the complete evil of the shooter.”

He was killed by a border patrol officer, Abbott said.

Abbott said all the victims’ families had been notified. Nexstar has confirmed the names and ages of some of the victims:

  • Navaeh Bravo
  • Jackie Cazeres, 10
  • Jose Flores, 10
  • Eliahna Garcia, 10
  • Uziyah Garcia, 8
  • Amerie Jo Garza, 10
  • Xavier Javier Lopez, 10
  • Jayce Carmelo Luevanos
  • Tess Mata
  • Alexandria Aniyah Rubio
  • Annebelle Rodriguez, 10
  • Layla Salazar, 10
  • Jaliah Nicole Silguero, 10
  • Rojelio Torres
  • Fourth-grade teacher Eva Mireles, 44
  • Fourth-grade teacher Irma Garcia, 46

On Wednesday, Abbott said an additional 17 people were injured in the rampage, but their injuries were non-life threatening.

Three law enforcement officials were injured and were all in good condition, the governor said. One deputy sheriff lost a daughter in the mass shooting, Abbott said.

Investigators did not immediately disclose a motive but identified the assailant as a resident of the community about 85 miles west of San Antonio. In chilling posts on social media in the days and hours before the massacre, an account that appeared to belong to the gunman seemed to hint at plans for violence.

Gov. Abbott said Wednesday there was “no meaningful forewarning of this crime — other than what I’m about to tell you.” He went on to say the gunman made three posts to Facebook, the first of which said, “I am going to shoot my grandmother.” Then, “I shot my grandmother.”

The third post, 15 minutes before the massacre, said, “I’m going to shoot an elementary school,” according to the governor.

A spokesperson for Meta, the parent company of Facebook, said the social-media posts Abbott described were not public Facebook posts, but rather “private one-to-one text messages that were discovered after the terrible tragedy occurred.” He said the company was cooperating with law enforcement.

The shooter legally bought two AR-style rifles just days before the attack, soon after his 18th birthday, state senators briefed by law enforcement said.

Days before the attack, an Instagram account investigators say apparently belonged to the shooter posted a photo of a hand holding an ammunition magazine. On the day the gunman bought his second weapon last week, the account carried a photo of two AR-style rifles.

In that post, the shooter apparently tagged another Instagram user, one with more than 10,000 followers, asking her to share the picture with her followers.

“I barely know you and u tag me in a picture with some guns,” replied the Instagram user, who has since removed her profile. “It’s just scary.”

On the morning of the attack, the account linked to the gunman replied: “I’m about to.”

Instagram confirmed to The Associated Press that it is working with law enforcement to review the account but declined to answer questions about the postings.

The attack in the predominantly Latino town of Uvalde was the deadliest school shooting in the U.S. since a gunman killed 20 children and six adults at Sandy Hook Elementary in Newtown, Connecticut, in December 2012.

“To say the least, Uvalde has been shaken to its core,” Gov. Abbott said Wednesday. “Families are broken apart. Hearts are forever shattered. All Texans are grieving with the people of Uvalde and people are rightfully angry about what has happened.”

The bloodshed was the latest in a seemingly unending string of mass killings at churches, schools, stores and other sites in the United States. Just 10 days earlier, 10 Black people were shot to death in a racist rampage at a Buffalo, New York, supermarket.

In a somber address to the nation hours after the attack in Texas, President Joe Biden pleaded for new gun restrictions.

“As a nation we have to ask: When in God’s name are we going to stand up to the gun lobby? When in God’s name are we going to do what has to be done?” he asked. “Why are we willing to live with this carnage?”

But the prospects for any reform of the nation’s gun regulations appeared dim. Repeated attempts over the years to expand background checks and enact other curbs have run into Republican opposition in Congress.

Officers found one of the rifles in the shooter’s truck, the other in the school, according to the briefing given to lawmakers. The gunman was wearing a tactical vest, but it had no hardened body-armor plates inside, lawmakers were told. He also dropped a backpack containing several magazines full of ammunition near the school entrance.

One of the guns was purchased at a federally licensed dealer in the Uvalde area on May 17, according to state Sen. John Whitmire. The gunman bought 375 rounds of ammunition the next day, then purchased the second rifle last Friday.

On Tuesday morning, the gunman shot and wounded his grandmother, then fled the scene, crashing his truck near the school and entering the building, authorities said. Inside the barricaded classroom, he “just began shooting anyone that was in his way,” Olivarez said.

Dillon Silva, whose nephew was in a nearby classroom, said students were watching the Disney movie “Moana” when they heard several loud pops and a bullet shattered a window. Moments later, their teacher saw the attacker stride past the door.

“Oh, my God, he has a gun!” the teacher shouted twice, according to Silva. “The teacher didn’t even have time to lock the door,” he said.

A tactical team forced its way into the classroom where the attacker was holed up and was met with gunfire from the shooter, but shot and killed him, according to Olivarez.

In the aftermath, families in Uvalde waited hours for word on their children. At the town civic center where some gathered Tuesday night, the silence was broken repeatedly by screams and wails. “No! Please, no!” one man yelled as he embraced another man. On Wednesday morning, volunteers were seen arriving with Bibles and therapy dogs.

Staff members in scrubs and devastated victims’ relatives could be seen weeping as they left Uvalde Memorial Hospital, where many of the children were taken. Three children and an adult were being treated at a San Antonio hospital, where two of them — a 66-year-old woman and 10-year-old girl — were listed in serious condition.

Law enforcement officers investigating the bloodshed began serving search warrants and gathering telephone and other records. They also sought to contact the shooter’s relatives and trace the guns.

Uvalde, home to about 16,000 people, is about 75 miles from the Mexican border. Robb Elementary, which has nearly 600 students in second, third and fourth grades, is a single-story brick structure in a mostly residential neighborhood of modest homes.

The attack came as the school was counting down to the last days of the school year with a series of themed days. Tuesday was to be “Footloose and Fancy,” with students wearing nice outfits.

Condolences poured in from leaders around the world. Pope Francis said it is time to say “‘enough’ to the indiscriminate trade of weapons!” Ukrainian Foreign Minister Dmytro Kuleba said his nation also knows “the pain of losing innocent young lives.”

Texas, which has some of the most gun-friendly laws in the nation, has been the site of some of the deadliest shootings in the U.S. over the past five years.

In 2018, a gunman killed 10 people at Santa Fe High School in the Houston area. A year before that, a gunman shot more than two dozen people to death during a Sunday service in the small town of Sutherland Springs. In 2019, a gunman at a Walmart in El Paso killed 23 people in a racist attack targeting Hispanics.

The shooting came days before the National Rifle Association annual convention was set to begin in Houston. Gov. Greg. Abbott and both of Texas’ U.S. senators, all of them Republicans, were among the scheduled speakers at a forum Friday.

The Associated Press contributed to this report.