ABC News May 25, 2022

For Border Patrol agents, responding to the Texas school shooting was personal

WATCH: At least 19 students, 2 adults dead after shooting at Texas school

For some of the officers who responded to the Texas school shooting, it was personal.

When gunfire rang out at Robb Elementary School in Uvalde, Texas, agents from Customs and Border Protection immediately responded.

Law enforcement sources tell ABC News Border Patrol agents' children were inside.

MORE: Texas school shooting live updates: Shooter bought 2 rifles days before shooting

One CBP agent was shot, but is expected to make a recovery, sources said, one of at least a dozen agents -- both on-duty and off-duty -- who rushed to the scene.

"Risking their own lives, these Border Patrol Agents and other officers put themselves between the shooter and children on the scene to draw the shooter's attention away from potential victims and save lives," Marsha Espinosa, the Assistant Secretary of Public Affairs at the Department of Homeland Security, tweeted.

Eric Gay/AP, FILE
Border Patrol agents in Donna, Texas, May 2, 2019.
MORE: What we know about the victims of the Texas school shooting in Uvalde so far

Nineteen children and two teachers were killed -- the second-deadliest school shooting in U.S. history.

CBP Rio Grand Valley section Chief Jason Owens told ABC News that BORTAC, the elite Border Patrol tactical team, also responded.

MORE: 50% jump in active-shooter incidents from 2020 to 2021: FBI

Many CBP agents live in Uvalde, CBP Commissioner Chris Magnus said in a statement.

"CBP responded immediately to the incident with local law enforcement," Magnus said in a statement Tuesday night. "Many of our local CBP personnel live in Uvalde; they call this community home, and they work to protect their families, friends and neighbors every single day."

MORE: Biden addresses nation on 'horrific' Texas school shooting: 'We have to act'

Owens told ABC News it's a rare positive amid the tragedy.

"In the worst of times you also get to see the very best in people," Owens said. "And that's what I've seen time and time again in these communities in South Texas."