Investigators did not immediately disclose a motive but identified the assailant as Salvador Ramos, a resident of the community about 85 miles (135 kilometers) west of San Antonio.
Ramos had hinted on social media that an attack could be coming, suggesting that “kids should watch out,” according to state Sen. Roland Gutierrez, who said he had been briefed by state police.
Ramos legally brought two AR-style rifles just days before the attack, soon after his 18th birthday, state senators briefed by law enforcement said.
One of the guns was purchased at a federally licensed dealer in the Uvalde area on May 17, according to Sen. John Whitmire. Ramos bought 375 rounds of ammunition the next day, then purchased the second rifle on May 20.
On that day, an Instagram account appearing to belong to the gunman shared a photo of two AR-style rifles.
19 children, 2 adults killed in Texas school rampage | AP News19 children, 2 adults killed in Texas school rampage | AP News