An eighth-grade student brought a gun to school on Thursday and committed suicide, according to officials.

Fire department officials told reporters that the student died from a self-inflicted gunshot wound, reportedly in a bathroom, at the Southgate school early Thursday morning.

Davidson Middle School officials put the school on lockdown and contacted parents around 9:15 a.m. to pick up their children, saying at first that the school had a "police situation." WXYZ officials said that some children looked "visibly upset" when exiting the school.

According to WDIV, Southgate Schools Superintendent William Grusecki said the boy did leave a note.

Michigan Department of Education Jan Ellis, said Thursday that it is rare for a suicide to occur inside a public school and added she wasn't sure one had ever occurred in MIchigan before Thursday, according to the Detroit News.

In Detroit, a seven-year-old boy died as a result of an alleged suicide last May.

UPDATE 4:05PM: According to the Detroit News, the 14-year-old boy shot himself in the head with a .40 caliber Glock before classes started at 8 a.m. The News said he was found by another student in the school. The victim was transported to a local hospital, where he later died.

The student's name was not released by school officials or police.

The Detroit Free Press interviewed students, who said the boy was friendly and well-liked at Davidson Middle School. The report quoted an official at Southgate Community School District who said the gun used by the student may have belonged to a family member. There are no metal detectors at the middle school.

Need help? In the U.S., call 1-800-273-8255 for the National Suicide Prevention Lifeline.