An armed 16-year-old Wisconsin high school student confronted a school resource officer Tuesday morning, leading to an officer-involved shooting.

The incident happened around 9:12 a.m. at Oshkosh West High School in Winnebago County, about 75 miles northwest of Milwaukee.

Oshkosh police chief Dean Smith said at a news conference Tuesday afternoon that the teen stabbed the resource officer following a confrontation in an office. The officer opened fire, striking the student.

The student and the officer were both injured and taken to local hospitals, the Oshkosh Police Department said in a Facebook post. Smith said he does not believe their injuries are life-threatening.

The school, which has about 1,700 students, was kept on lockdown and parents were told they could pick up their children at a local middle school. Classes for all Oshkosh area schools will be canceled Wednesday, said Vickie Cartwright, the superintendent of schools.

“The safety of our students is paramount to us,” Smith said.

The incident has since been turned over to the state Department of Criminal Investigations.

Download the NBC News app for breaking news and politics

The shooting comes one day after an incident at another Wisconsin high school about 80 miles south of Oshkosh.

At around 10 a.m. Monday, a police officer at Waukesha South High School shot a male student who was allegedly armed with a gun. The shooting occurred after a student at the school alerted a school resource officer that a classmate had a gun.

In the Waukesha incident, authorities said that a school resource officer, along with local police and sheriff's deputies, responded and tried to de-escalate the incident, but were unsuccessful in doing so.

Waukesha Police Chief Russell Jack said the suspect would not remove his hands from his pockets and then took a gun from the waistband of his pants and pointed it at the officers. A Waukesha officer fired, striking the student.

The suspect was said to be in stable condition and was taken into custody. No one else was injured in Monday's shooting.