School resource police officer Mark Dallas stopped a potential shooting at Dixon High School in Dixon, IL, when he took down a former student who opened fire on the school.

From The Chicago Tribune:

Authorities said the incident began about 8 a.m. when the suspect “fired several shots” near the gym. Dallas, who has worked as a school resource officer at Dixon High for five years, rushed to the area. He confronted the suspect, who then fled but, with the officer in pursuit, fired several shots at Dallas but did not strike him, police Chief Steven Howell said.

The officer returned fire and struck the suspect, who was then taken into custody just west of the school, Howell said.

Officials charged Matthew Milby, 19, “with felony aggravated discharge of a weapon and set his bond at $2 million.”

A woman who called herself Milby’s mother told the media that her “son has been very, very sad for a long time” and that he “was bullied and ostracized at school, and was beaten up in October.” She also does not know where he got a gun.

Davis has received praise for his quick action:

“From the angle I’m looking at right now, a lot of things went right today when a great many of them could have (gone) wrong,” Dixon Mayor Liandro Arellano Jr. said. “Things could have gone much worse.”

“He saved an enormous amount of lives,” said Lee County Sheriff John Simonton.

In a statement, Gov. Bruce Rauner credited “school resource officer Mark Dallas for his bravery and quick action.”

Milby was the only one to receive injuries.

Davis has been in law enforcement for 24 years and spent the last 15 years in Dixon. He and officials asked to give him some privacy.