Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

A student was killed and a second was injured Wednesday in what was called an accidental shooting at a high school in Birmingham, Alabama, authorities said.

The shooting occurred at Huffman High School, in east Birmingham, said Police Chief Orlando Wilson. The students were rushed to the University of Alabama-Birmingham Hospital, where one of them, a 17-year-old girl, was pronounced dead, Wilson said.

The other student, a 17-year-old boy, was treated and released, police said Thursday morning.

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

Wilson said the incident was being treated as an "accidental shooting at this particular time." He later added, "This is not a situation where someone came in and randomly fired from the outside."

On Thursday morning, police said they were holding a person of interest, but declined to say whom it was because authorities had yet to file charges.

Classes had let out for the day at the time of the shooting, Birmingham City Schools said in a brief statement. But many students and faculty were still on campus for after-school activities at the time, and the school was briefly locked down as police responded, it said.

The school system said Huffman High School would be closed Thursday "to conduct a thorough safety sweep."

Wilson wouldn't discuss how two people could have been shot by accident, but he said he hadn't been told of any argument or threat.

No other details were immediately available.

CORRECTION (March 7, 2018, 10:40 p.m. ET): A previous version of this article incorrectly identified a victim of the shooting. The student who died is a 17-year-old girl, not a boy, authorities said.