OXFORD TOWNSHIP, Mich. — Authorities say three students were killed in an attack at a Michigan high school in which eight people were wounded.

Oakland County Undersheriff Mike McCabe said at a news conference that two of the wounded were undergoing surgery as of 5 p.m. Tuesday and that the six others were in stable condition. He identified the three students who were killed as a 16-year-old boy and two girls, ages 14 and 17.

Authorities say they received a flood of 911 calls shortly before 1 p.m. about an attack at Oxford High School in Oxford Township, a community of about 22,000 people roughly 30 miles north of Detroit.

McCabe said deputies took the shooting suspect — a 15-year-old sophomore — into custody without incident within five minutes of arriving at the school. He said the suspect’s parents visited him where he’s being held and advised their son not to talk to investigators, as is his right.

He said as far as he knows, the suspect had no prior run-ins with law enforcement.

Authorities arrested the suspect at the school and recovered a semi-automatic handgun and several clips.

“Deputies confronted him, he had the weapon on him, they took him into custody,” McCabe said, adding that suspect wasn’t hurt when he was taken into custody and he refused to say how he got the gun into the school.

Authorities didn’t immediately release the names of the suspect or victims. About 1,700 students attend the school.

Tim Throne, the superintendent of Oxford Community Schools, said he didn’t yet know the victims’ names or whether their families had been contacted.

“I’m shocked. It’s devastating,” the shaken superintendent told reporters.

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 grocery store to be picked up by their parents.

Isabel Flores told WJBK-TV 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, said Flores, a 15-year-old ninth grader.

McCabe said investigators would look through social media posts for any evidence of a possible motive.

Robin Redding said her son, Treshan Bryant, is a 12th grader at the school but stayed home Tuesday. She said he had heard threats of a shooting at the school.

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

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 at the school.

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

School administrators posted two letters to parents on the school’s website this month, saying they were responding to rumors of a threat against the school following a bizarre vandalism incident.

According to a Nov. 4 letter written by Principal Steve Wolf, someone threw a deer head into a courtyard from the school’s roof, painted several windows on the roof with red acrylic paint and used the same paint on concrete near the school building.

Without specifically referencing that incident, a second post Nov. 12 assured “there has been no threat to our building nor our students.”

“We are aware of the numerous rumors that have been circulating throughout our building this week. We understand that has created some concern for students and parents,” the administrators wrote. “Please know that we have reviewed every concern shared with us and investigated all information provided. Some rumors have evolved from an incident last week, while others do not appear to have any connection. Student interpretations of social media posts and false information have exacerbated the overall concern.”

Michigan Gov. Gretchen Whitmer was one of several elected officials who expressed condolences to the victims.

“Gun violence is a public health crisis that claims lives every day. We have the tools to reduce gun violence in Michigan. This is a time for us to come together and help our children feel safe at school,” Whitmer said in the statement.