A student armed with a handgun held nearly two dozen students and a teacher hostage in a US high school for about five hours before shooting himself when police broke into the classroom, authorities said.
No other injuries were reported.
Officers who were outside the Marinette High School classroom in Wisconsin said they heard three gunshots shortly after 8pm and broke down the door, Police Chief Jeff Skorik said.
The 15-year-old male gunman then shot himself.
Mr Skorik said the teenager was taken to an area hospital and his condition was not immediately known.
Officials earlier had said there were no reports of shots fired, but student Zach Campbell said he and his classmates had been watching a film about Greek myths at the end of the school day when the hostage-taker pulled out a gun and shot the projector.
He then fired another shot.
"It was a very scary event," Zach said. The teenager made students put their mobile phones in the middle of the room and broke his own phone when it rang. The class then spent six hours talking to him about hunting and fishing.
"We just wanted to be on his good side," Zach said. He said the gunmen seemed depressed. "But he didn't really seem like he wanted to hurt anybody."
Zach was among five students who were released about 20 minutes before police entered the classroom after convincing the gunman they had to use the bathroom.
The other 18 students and the female teacher, who had acted as a mediator between the male hostage-taker and authorities, were released unharmed once officers were inside.
Mr Skorik said the gunman had refused to communicate with officials during the stand-off, but allowed the teacher to speak with authorities by phone.
During the stand-off, dozens of people kept away from the scene by firefighters congregated in the parking lot of a nearby hair salon in the town of about 12,000 people that sits on the border with Michigan's Upper Peninsula.
The high school has an annual enrolment of approximately 800 students, according to its website.
"They just spent a whole bundle of money on classroom doors to make them secure, but they don't have metal detectors at the school," said councillor Bradley Behrendt.
Choral teacher Bonita Weydt said she was talking with a teacher in another classroom after school, which lets out about 3.10pm, when principal Corry Lambie came in.
"I said, 'Corry, what's going on?' and he said, 'Get out of the building'," Ms Weydt said.
Officials had asked parents to gather at the county courthouse, where school officials met with families.
Marinette Schools Supt Tim Baneck said the community had gone through an emergency response training exercise last year.
"So the local law enforcement officials as well as the educators were all involved in a mock shooter situation, so it is actually very fresh in our minds in terms of the training we just went through," he said.