OXFORD TOWNSHIP, Mich. (AP) — A 15-year-old sophomore opened fire at his Michigan high school on Tuesday, killing three students, including a 16-year-old boy who died in a deputy’s patrol car on the way to a hospital, authorities said. Eight other people were wounded, some critically.

Oakland County Sheriff Michael Bouchard said late Tuesday that investigators were still trying to determine a motive for the shooting at Oxford High School in Oxford Township, a community of about 22,000 people roughly 30 miles (48 kilometers) north of Detroit.

“The person that’s got the most insight and the motive is not talking,” Bouchard said at a news conference.

Police are shown in the parking lot of a Meijer store where Oxford High School students were being reunited with parents in Oxford, Mich., Tuesday, Nov. 30, 2021. Authorities say a 15-year-old sophomore opened fire at Oxford High School, killing several students and wounding multiple other people, including a teacher. (AP Photo/Paul Sancya)

The suspect’s father had bought the 9mm Sig Sauer used in the shooting on Friday, Bouchard said, adding that he did not know why the man bought the gun. Bouchard said the suspect had practiced shooting with the gun and “posted pictures of the target and the weapon.”

The three students who were killed were 16-year-old Tate Myre, 14-year-old Hanna St. Julian, and 17-year-old Madisyn Baldwin. Bouchard said Myre died in a patrol car as a deputy tried to get him to a hospital.

Oxford High School sophomore Allison Hepp, 15, holds a candle as she bows her head in prayer during a vigil after the Oxford High School school shootings, Tuesday, Nov. 30, 2021, at LakePoint Community Church in Oxford, Mich. (Jake May/The Flint Journal via AP)

Bouchard said a teacher who received a graze wound to the shoulder was discharged from the hospital, but seven students ranging in age from 14 to 17 remained hospitalized with gunshot wounds, including a 14-year-old girl who was on a ventilator after surgery.

Undersheriff Mike McCabe said earlier that authorities were aware of allegations circulating on social media that there had been threats of a shooting at the roughly 1,700-student school before Tuesday’s attack, but he cautioned against believing that narrative until investigators can look into it.

Oakland County Undersheriff Mike McCabe speaks at a news conference in Oxford, Mich., Tuesday, Nov. 30, 2021. Authorities say a 15-year-old sophomore opened fire at Oxford High School, killing several students and wounding multiple other people, including a teacher. (AP Photo/Paul Sancya)

He also downplayed the significance of an incident in early November when a deer head was thrown off the school roof, which he said was “absolutely unrelated” to the shooting. The vandalism prompted school administrators to post two letters to parents on the school’s website this month, saying they were responding to rumors of a threat against the school but had found none.

Authorities didn’t immediately release the suspect’s name, but Bouchard said deputies arrested him within minutes of arriving at the school in response to a flood of 911 calls about the attack, which happened shortly before 1 p.m. He said the deputies arrested him after he emerged from a bathroom with the gun, which he said had seven rounds of ammunition still in it.

Oxford High School is shown in Oxford, Mich., Tuesday, Nov. 30, 2021, where authorities say a student opened fire at the school. (AP Photo/Paul Sancya)

“I believe they literally saved lives having taken down the suspect with a loaded firearm while still in the building,” Bouchard said.

McCabe said the suspect’s parents visited their son where he’s being held and advised him not to talk to investigators, as is his right. Police must seek permission from a juvenile suspect’s parents or guardian to speak with them, he added.

Oakland County Prosecutor Karen McDonald issued a statement Tuesday evening saying her office expects to issue charges quickly and that an update would be given Wednesday.

McCabe said he wasn’t aware of any prior run-ins the suspect had with law enforcement or if he had any disciplinary history at school.

President Joe Biden, before delivering remarks at a community college in Rosemount, Minnesota, said: “As we learn the full details, my heart goes out to the families enduring the unimaginable grief of losing a loved one.”

People hold candles during a prayer vigil after the Oxford High School school shootings, Tuesday, Nov. 30, 2021, at LakePoint Community Church in Oxford, Mich. (Jake May/The Flint Journal via AP)

The school was placed on lockdown after the attack, with some children sheltering in locked classrooms while officers searched the premises. They were later taken to a nearby Meijer grocery store to be picked up by their parents.

The district said in a statement that all of its schools would be closed for the rest of the week.

Isabel Flores, a 15-year-old ninth-grader, that she and other students heard gunshots and saw another student bleeding from the face. They then ran from the area through the rear of the school, she said.

Authorities said they were searching the suspect’s cellphone, school video footage and social media posts for any evidence of a possible motive.

A concerned parent, Robin Redding, said her son, Treshan Bryant, is a 12th grader at the school but stayed home Tuesday. She said he had heard threats that there could be a shooting.

“This couldn’t be just random,” she said.

People attend a vigil at LakePoint Community Church in Oxford, Mich., Tuesday, Nov. 30, 2021. Authorities say a 15-year-old sophomore opened fire at Oxford High School, killing several students and wounding multiple other people, including a teacher. (AP Photo/Paul Sancya)

Redding didn’t provide specifics about what her son had heard, but she expressed concern with school safety in general.

“Kids just, like they’re just mad at each other at this school,” she said.

Bryant said he texted several younger cousins in the morning and they said they didn’t want to go to school, and he got a bad feeling. He asked his mom if he could do his assignments online.

Bryant said he had heard vague threats “for a long time now” about plans for a shooting.

“You’re not supposed to play about that,” he said of the threats. “This is real life.”

People attending a vigil embrace at LakePoint Community Church in Oxford, Mich., Tuesday, Nov. 30, 2021. Authorities say a 15-year-old sophomore opened fire at Oxford High School, killing three students and wounding several others, including a teacher. (AP Photo/Paul Sancya)

For Greg Hill, the day twisted his stomach in knots. His children attend the elementary school in the district, and he brought them to the vigil.

“Just glad that our children are safe and now it’s time for the community to heal,” Hill, 40, said.

Pastor Jesse Holt said news of the shooting flooded in to him and his wife, including texts from some of the 20 to 25 students who are among the 400-member congregation.

“Some were very scared, hiding under their desks and texting us, ‘We’re safe, we’re OK. We heard gunshots, but we’re OK.’ They were trying to calm us, at least that’s how it felt,” he said.

One student texted that she was hiding in a bathroom with a boy who also was seeking shelter.

After deputies arrested the shooter, the girl ran from the school and was taken in by someone living close by until her mom could pick her up, Holt said.

“That’s our community,” he said. “That’s who we are.”