The gunman who killed 19 students and two teachers at a Texas elementary school Tuesday was on the premises for up to an hour before law enforcement forcibly entered a classroom and killed him, officials said Wednesday. “It’s going to be within, like 40 minutes or something, (within) an hour,” Texas Department of Public Safety director Steven McCraw told CNN’s Ed Lavandera at a news conference. The 18-year-old shooter, Salvador Ramos, was in a standoff with law enforcement officers for about a half-hour after firing on students and teachers, Rep. Tony Gonzales, whose district includes Uvalde, told CNN’s Jake Tapper, citing a briefing he was given. “And then (the shooting) stops, and he barricades himself in. That’s where there’s kind of a lull in the action,” Gonzales said. “All of it, I understand, lasted about an hour, but this is where there’s kind of a 30-minute lull. They feel as if they’ve got him barricaded in. The rest of the students in the school are now leaving.” Raul Ortiz, Chief of the US Border Patrol, told CNN that agents arrived at the scene after police officers engaged the suspect at the school. Several members of the Border Patrol tactical team, a search and rescue responder and a few other agents joined local officers to form a team that went after the gunman. “They didn’t hesitate. They came up with a plan. They entered that classroom and they took care of the situation as quickly as they possibly could,” Ortiz told. That ended the second deadliest shooting at a K-12 school in the United States since 2012, when 26 children and adults were killed at Sandy Hook Elementary School. It was at least the 30th shooting at a K-12 school in 2022, according to a CNN tally. LIVE UPDATES: Deadly shooting at Texas elementary school The gunman was a local high school dropout with no criminal history and no known mental health history, officials said. He had just turned 18 and legally bought two AR-15-style rifles and ammunition for his birthday. His grandfather said Wednesday he didn’t know Ramos had guns. “If I had known I would have reported him,” Rolando Reyes said. Gunman allegedly texted teenaged girl in Germany on day of shooting The gunman allegedly texted a girl who lives in Germany about his intentions just before he shot his grandmother in her home and left for the school in her pickup. According to screenshots reviewed by CNN and an interview with the 15-year-old girl – who said she had been in contact with the gunman for weeks – Salvador Ramos complained about his grandmother being “on the phone with AT&T abojt (sic) my phone.” “It’s annoying,” he texted. Six minutes later, he texted: “I just shot my grandma in her head.” Seconds after that, he said, “Ima go shoot up a(n) elementary school rn (right now).” The last message was sent at 6:21 p.m. Central European Time, which was 11:21 a.m. in Texas. The girl, who lives in Frankfurt, said she began chatting with Ramos on a social media app on May 9. Ramos sent the girl selfie videos and discussed a plan to go visit her in Europe, according to videos and text messages. The girl, whose mother gave permission for her to be interviewed, said she spoke to Ramos daily on FaceTime. She said she also communicated with him via a social livestreaming app called Yubo and played games with him on a gaming app named Plato. In their conversations, she said he asked about her life in Germany. “He looked happy and comfortable talking to me,” the girl said. The texts to the girl are similar to messages that Texas Gov. Greg Abbott said Ramos wrote on Facebook. Those disturbing writings, Abbott said, came as the suspect indeed shot his grandmother, drove to nearby Robb Elementary School, forced his way inside adjoining classrooms and opened fire at a group of kids and faculty. Officers eventually forced their way into the barricaded room and a Border Patrol officer fatally shot him, Abbott said. A spokesperson for Meta, Facebook’s parent company, said the gunman’s messages were made in private one-to-one texts that were discovered after the shooting. Now, the city of Uvalde, about 90 miles west of San Antonio and just east of the US-Mexico border, finds itself on the long list of American communities devastated by mass shootings. So far, seven 10-year-olds and a two fourth-grade teachers have been named publicly by relatives as among the dead. Parents waited late into Tuesday night at a civic center to learn whether their children had survived, some having given DNA to help authorities identify victims, they told CNN. Authorities have since identified all the victims, whose remains have been removed from the murder scene, and notified their families, Texas Department of Public Safety Lt. Chris Olivarez said. President Joe Biden said Wednesday he will visit Uvalde soon. “As a nation, I think we all must be there for them,” Biden said. “And we must ask when in God’s name will we do what needs to be done to if not completely stop, fundamentally change the amount of the carnage that goes on in this country.” So far, there have been more mass shootings than days in 2022 – including the racist attack at a Buffalo, New York, grocery store a little over a week ago that left 10 dead. At least 213 mass shootings had been recorded this year as of Tuesday, the 144th day of the year, according to the Gun Violence Archive. CNN and the archive each define a mass shooting as one in which four or more people were injured or killed, not including the shooter. Sympathy also poured in from across the globe, including Pope Francis, who pushed for stronger gun control. Leaders of France, Germany and Spain shared condolences, too, along with the President of war-torn Ukraine, who called it “terrible to have victims of shooters in peaceful time.” How the shooting unfolded The gunman shot his grandmother in the face before driving to Robb Elementary, a second through fourth grade school, to carry out the attack, Gov. Abbott said. Officials said the grandmother, who called 911, remains in a hospital – as do five victims from the school – but was upgraded from critical condition to serious on Wednesday. Soon after that initial shooting, police got a 911 call about a vehicle that had crashed near the school and someone armed with a rifle heading inside, Olivarez told CNN in an interview Wednesday morning. The man was wearing a “tactical vest carrier with no ballistic panels,” Olivarez said. Sgt. Erick Estrada of the Texas Department of Public Safety told CNN that when the shooter got to the school, he encountered a school resource officer, dropped a black bag with ammunition inside and entered the school. The shooter barricaded himself inside adjoining classrooms and opened fire on the children and two teachers, Olivarez said, calling the act “complete evil.” With the shooter barricaded inside, officers were at a disadvantage, he said. “There was not sufficient manpower at that time, and their primary focus was to preserve any further loss of life,” he told CNN. “They started breaking windows around the school and trying to rescue, evacuate children and teachers while that was going on.” A tactical team of local and federal officers arrived, forced its way into the classroom and shot the gunman dead, Olivarez said. Community shattered by sudden tragedy As the last day of school was drawing near, Robb Elementary students were celebrating with special themed dress days, including Tuesday’s theme of “Footloose and Fancy.” Students were encouraged to come dressed in nice outfits and show off their fun footwear, according to a post on the school’s Facebook page. But by Tuesday afternoon, shaken students were being bused to the civic center-turned-reunification site. As the evening stretched on, some parents began to learn their young children had not survived. “We see people coming out just terrorized. They’re crying one by one. They’re being told that their child has passed on,” state Sen. Roland Gutierrez told CNN on Tuesday night from the site. As news of the shooting broke in Uvalde, Robb Elementary parents were told students were being taken to the SSGT Willie de Leon Civic Center, according to a post on the school district’s Facebook page. The site quickly became the epicenter for families looking for their children, and scenes of devastation began to play out as victims were identified. Parents were asked for DNA swabs to confirm their relationships to their children and instructed to wait an hour for an answer, at least four families told CNN. ‘She just wanted to save everyone,’ father says Seven of the children and two teachers killed have been identified publicly by their families. Angel Garza, the father of 10-year-old Amerie Jo Garza, told CNN’s Anderson Cooper his daughter was trying to help her classmates. “She was trying to do the right thing,” he said. “She was just trying to call the cops, that’s all.” He later added, “I just want people to know she died trying to save her classmates. She just wanted to save everyone.” Garza, who works as a med aide, arrived at the scene to help victims and said he learned his daughter had died as he checked on a survivor who was covered in blood. “She was hysterical saying they shot her best friend,” he said. “‘She’s not breathing, and she tried to call the cops.’ I asked her what’s her name and she said, she told me ‘Amerie, she said Amerie.’” Teacher Irma Garcia was identified through a GoFundMe campaign. She was a wife and mother to four children, according to the campaign. “Sweet, kind, loving. Fun with the greatest personality. A wonderful 4th grade teacher at Robb Elementary that was a victim in a Texas school shooting in Uvalde, Texas. She sacrificed herself protecting the kids in her classroom. She was a hero. She was loved by many and will truly be missed,” the campaign said. Garcia was in her fifth year co-teaching with Eva Mireles, whose aunt confirmed her death. Mireles had been an educator for 17 years and in her off time enjoyed running, hiking, biking and spending time with her family, according to her profile on the Uvalde Consolidated Independent School District website. Annabell Guadalupe Rodriguez, a 10-year-old third grader, was killed in the same classroom as her cousin, who was also died, relatives told CNN affiliate KHOU. The cousin’s name has not been released. Ten-year-old Xavier Lopez’s mother confirmed her son was killed and recalled her fourth grader’s unforgettable smile. Xavier was days away from finishing elementary school and “couldn’t wait” to attend middle school, his mother told the Washington Post. Martinez had been at the school earlier Tuesday to cheer on Xavier during the honor roll ceremony, at which he got a certificate. She took a picture of her boy and told him she was proud of him and loved him, she said. Then, she hugged her “mama’s boy” goodbye. Jose Flores Jr., 10, was killed, as well, his father told CNN. The brother of two younger siblings, Jose loved baseball and video games and “was always full of energy,” Jose Flores Sr. said. Relatives of Eliana “Ellie” Garcia, 9, told KHOU that she was one of the victims of the shooting. She loved the movie “Encanto,” cheerleading and basketball, her grandparents told the Los Angeles Times. They add that she dreamed of becoming a teacher. And 10-year-old Uziyah Garcia was among the slain, his family told CNN. The fourth grader was “full of life” and “loved anything with wheels,” his uncle Mitch Renfro told CNN. Uziyah’s grandfather remembered throwing the football with his grandson and teaching him pass patterns and plays, Manny Renfro recalled. He was the “sweetest little boy that I’ve ever known,” the grandfather said in an interview with CNN affiliate KSAT. Robb Elementary includes second through fourth grades and had 535 students in the 2020-21 school year, state data shows. About 90% of students are Hispanic, according to the data. Uvalde County had a population of about 25,000 in the 2020 census. What we know about the shooter Ramos had stopped regularly attending school at Uvalde High School, one of his former classmates told CNN. “He barely came to school,” said the friend, who did not wish to be identified. Ramos had recently sent him a picture of an AR-15-style rifle, a backpack with rounds of ammunition and several magazines, the friend added. “I was like, ‘Bro, why do you have this?’ and he was like, ‘Don’t worry about it,’” the friend said. “He proceeded to text me, ‘I look very different now. You wouldn’t recognize me.’” The shooter also sent ominous Instagram messages to another user hours before the shooting, screenshots show. Three days before the attack, an account linked to the shooter posted a photo of two rifles lying on a carpet in a story that tagged another Instagram account by name. The owner of the tagged account wrote in a story posted after the shooting that Ramos had tagged her and messaged her out of the blue. The girl, who did not include her name on her account and has since made her account private, posted a series of screenshots of messages she said she exchanged with the shooter in the days before the massacre. In one message that appeared to be sent the morning of the shooting, Ramos wrote “I’m about to” – but didn’t say what he would do. “I got a lil secret,” he wrote in another message. “I wanna tell u.” In messages posted to her story before it went private, the girl said that she didn’t live in Texas and didn’t know Ramos. Ramos had a history of fighting with others, according to a former friend and a video obtained by CNN that depicts Ramos repeatedly throwing punches. The former friend said the video, which he received more than a year ago, depicts Ramos fighting with someone else, which the former friend said was not out of the ordinary. “He would always get in fights in school,” the former classmate said CNN has reached out to the Uvalde school district for more information, but received no response.