BROWNSVILLE, Texas — Police shot and killed an armed teenage student in his Texas school hallway on Wednesday.

Brownsville police Detective J.J. Trevino said police received a call at about 8 a.m. that someone had a weapon at Cummings Middle School. Police found the 15-year-old with a handgun in a hallway and shot him, Trevino said.

Cameron County Justice of the Peace Kip V. Johnson Hodge told The Brownsville Herald newspaper the student died.

Trevino said the school was immediately placed on lockdown, and no one else was injured.

A school administrator apparently noticed the student carrying the gun and called police, Trevino said. He said investigators hadn't determined whether the student fired any shots. He said he had no information on why the student had the gun on him.

"It's still under investigation, as far as how he came about to bringing the weapon or if he encountered anybody or anything else," Trevino said.

A school district spokeswoman didn't immediately respond to phone messages, and calls to the school rang unanswered.