EXCLUSIVE — UVALDE, Texas — The elite tactical agents in the Border Patrol credited with taking down the gunman in Tuesday’s mass shooting at Robb Elementary School in Uvalde, Texas, thought they were attempting a “suicide” mission in charging a barricaded shooter, a senior Homeland Security official said.

Parents on the scene outside the school amid the chaos criticized law enforcement for taking too long to act. A senior federal law enforcement official familiar with the investigation into the incident told the Washington Examiner on Thursday that the Border Patrol agents had been appointed by the local and state law enforcement on the site to lead that aspect of the response.

SEE IT: PICTURE SHOWS BULLET WOUND ON UVALDE HERO BORDER PATROL AGENT'S HEAD

First responders on the scene recognized that the attacker, Salvador Ramos, had barricaded himself inside a classroom and was not targeting other classrooms. The early reporting on the shooting included confusion about whether Ramos targeted one or two classrooms.

“It was two rooms that were connected, so that’s why there’s misinformation. The gunman went into both,” the federal official said. “By entering the door from the hallway, you’d have access to both.”

Ramos had barricaded himself inside the joint classroom with his AR-style semi-automatic rifle, a weapon superior to the handguns police were carrying. The official said that breaching the room was seen as nearly impossible because of the disparity.

“If you have a barricaded subject and he has the advantage because he’s barricaded — if you rush through the door, not only do you have dead kids but dead cops,” the official said. "It’s suicide to try to rush a barricaded subject."

Police wanted to keep Ramos in an isolated area to prevent him from going to other classrooms.

Because of the school’s location in a town of 15,000 residents located just 60 miles from the U.S.-Mexico border and itself the home to a Border Patrol station, federal agents were among the police who responded to the shooting. While some police broke windows in order to pull children and teachers from the unaffected classrooms, highly trained agents who came in from the surrounding area were tasked with coming up with a plan to confront the attacker.

Two or three Border Patrol Tactical Unit, or BORTAC, agents and one Border Patrol Search, Trauma, and Rescue, or BORSTAR, agent chose to attempt busting into the classroom and taking on the direct fire. Two sheriff’s deputies accompanied the agents inside.

"I don’t think a lot of people would make that decision. To me, it just speaks to those individuals who decided to make entry," the official said.

BORTAC agents were among those sent in to respond to the fiery riots waged by antifa rioters in Portland in 2020. BORTAC agents make up a tiny percentage of the Border Patrol’s 19,500 agents and are trained to respond to emergency and high-risk incidents.

“You come up with a plan and execute. A local sheriff’s deputy who does great work — kudos to him — isn’t going to take charge at the same level as a BORTAC guy that shows up,” the official said.

CLICK HERE TO READ MORE FROM THE WASHINGTON EXAMINER

The shooter’s plans have not yet been disclosed by investigators. The federal official familiar with the investigation said he does not believe Ramos followed through on what he had intended to do that day, potentially going through every classroom.

“I think he went in the classroom and did what he did and was like, ‘I’m going to hold up here until the final shootout happens,'" the official said.