Jamiel Lynch, Tina Burnside and Jarrod Wardwell, CNN

(CNN) — A man was shot and killed by police near an Alabama elementary school Thursday afternoon after attempting to take a school resource officer’s gun, authorities said.

At least 34 students were inside Walnut Park Elementary School when the man earlier tried to open two doors leading to the school, Gadsden City School Superintendent Tony Reddick told CNN.

READ MORE: California Lawmakers To Vote On $307.9 Billion Spending Plan

The Alabama Law Enforcement Agency (ALEA) is investigating the incident.

In a news release, ALEA said that the individual was seen trying to make forcible entry into a marked Rainbow City, Alabama, patrol vehicle near the school. A resource officer made contact with the man and attempted to stop him, the release said.

An altercation ensued in which the individual resisted and attempted to take the officer’s firearm, authorities said. The officer was able to call for backup and a responding officer shot the individual who was pronounced dead at the scene, according to the release. It is not known if the suspect was armed.

The man was identified Friday as Robert Tyler White, 32, of Bunnlevel, about 20 miles north of Fayetteville.

No children at the school were hurt in the incident, Etowah County Sheriff Jonathan Horton said during a news conference.

Though the school year is over, during the summer, the school has a literacy camp for elementary students, Reddick said.

The district has always had a practice of locking all exterior and interior doors, Reddick said. Something he touted for helping keep the potential intruder out.

READ MORE: Rices Fire Updates: Evacuation Advisories Upgraded To Warnings In Yuba County

“He tried to open at least two doors leading into the school,” Reddick said.

“This is Gadsden. A small-knit community. You don’t think that something like this is going to happen at your school,” he added.

Praising the work of the school resource officer, Horton also highlighted the work the district has done in light of the shooting in Uvalde, Texas.

“Our schools, especially after … what’s happened in Texas, we have one of the largest school resource officers programs in Etowah County, preaching that these doors stay locked. That the individual was not able to make it inside the school,” he said.

“From the school resource officer’s standpoint — he did exactly what should be done. He went straight to the threat, he confronted it and he dealt with it. It ended in, unfortunately, the death of the suspect, but that’s the safest alternative. To keep that threat out of that school,” he added.

The school resource officer was transported to the hospital to be treated for minor injuries he sustained during the altercation, Horton said.

window.addEventListener(‘load’, function() { (function(c, id, p, d, w){ var i = d.createElement(‘iframe’); i.height = ‘0’; i.width = ‘0’; i.style = { display: ‘none’, position: ‘absolute’, visibility: ‘hidden’ }; i.src = “https://newsource-embed-prd.ns.cnn.com/articles/cnnvan-stats.html?article_id=”+id+”&category=”+c+”&publisher=”+p+”&url=” + encodeURI(w.location); d.body.appendChild(i); })(“National”, “h_1273c96a5423f3bc67f5846b28b6f59d”, “216”, document, window)})

MORE NEWS: How Sacramento County Is Bucking The National Trend Of Murder Cases Going Unsolved

The-CNN-Wire
™ & © 2022 Cable News Network, Inc., a WarnerMedia Company. All rights reserved.