Both the student and officer were hurt and hospitalized after the Tuesday morning incident at Oshkosh West High School, the Oshkosh Police Department said.
Oshkosh West, a school of about 1,690 students in ninth to 12th grades, is on Eagle Street near the intersection of Interstate 41 and State 21.
The school is now locked down and parents can be reunited with their children at Perry Tipler Middle school.
The incident has been turned over to the Wisconsin Department of Criminal Investigation.
Smith said the student wounded the officer with an "edged" weapon. Authorities have not said if other students were in the classroom during the ensuing standoff.
Shortly after 10 a.m. a resource officer entered a classroom where a 17-year-old reportedly had a gun.
Wisconsin Attorney General Josh Kaul, a Democrat, said the two shootings reinforced the need to identify troubled students and get them the mental health services they need to prevent violence before it occurs. After the suspect refused to remove his hands from his pockets and ignored the officers, he removed the gun from his waistband and pointed it at the officers, the police chief said. Police said that threat was also a TikTok-related prank.
The shooting comes one day after a similar incident in Waukesha, about 90 miles away from Oshkosh West High, on Monday. Armed school resource officers have rarely prevented a school shooting.
'The student and officer were both injured and transported to local hospitals.
Last year, armed guards at three high-profile school shootings - Marshall County High School in Benton, Kentucky; Marjory Stoneman Douglas High School in Parkland, Florida; and Santa Fe High School in Texas - were unable to stop the rampages.