Officer gets standing ovation at graduation for stopping school shooting

A school resource officer was honored at an Illinois high school graduation for his heroic actions after he stopped a school shooter from taking any lives.

Officer Mark Dallas received a standing ovation Sunday as he led Dixon High School students into their graduation ceremony. Matthew Milby, 19, brought a gun into the school and shot at a coach during graduation practice, but Dallas was able to take the shooter down as students ran for their lives, police said.

Mark Dallas, a school resource officer, reacts as he leads Dixon High School's Class of 2018 into their graduation ceremony in Lancaster Gymnasium at the school in Dixon, Ill., Sunday, May 20, 2018. Matthew A. Milby Jr., 19, is charged with firing shots inside of his northern Illinois high school Wednesday as seniors met for graduation rehearsal at the school before he was shot by Dallas. Milby was released from a hospital Thursday and transferred to the jail. (Peter Balser/The Telegraph via AP)

Mark Dallas, a school resource officer, reacts as he leads Dixon High School's Class of 2018 into their graduation ceremony in Lancaster Gymnasium at the school in Dixon, Ill., Sunday, May 20, 2018.  (Peter Balser/The Telegraph via AP)

"Today would not have turned out the same without you being here, so from the class of 2018, we love you,” senior class vice president Emma Krull said from the stage. “You, Mark Dallas, are our hero, and we are all Dixon strong.”

Because of Dallas’ actions, 182 seniors were able to walk across the stage and receive their high school diplomas – each shaking their hero’s hand, and one, Dallas’ son, Josh, giving him a hug.

Dixon High School's Class of 2018 celebrates their graduation at the school in Dixon, Ill., Sunday, May 20, 2018. Matthew A. Milby Jr., 19, has been charged with firing shots inside of his northern Illinois high school Wednesday as seniors met for graduation rehearsal at the school before he was shot by Mark Dallas, a school resource officer. Milby was released from a hospital Thursday and transferred to the jail. (Peter Balser/The Telegraph via AP)

Dixon High School's Class of 2018 celebrates their graduation at the school in Dixon, Ill., Sunday, May 20, 2018.  (Peter Balser/The Telegraph via AP)

"I never would have thought, 'Oh, it's going to happen in Dixon,' and it happens at graduation practice," senior Ashely Jones told FOX 32.

Police say Milby, who is being held on a $2 million bail after being charged with firing shots, suffered non-life threatening injuries.

Dixon’s graduation came just days after the Santa Fe, Texas school shooting that killed 10 people.

Caleb Parke is an associate editor for FoxNews.com. You can follow him on Twitter @calebparke