A South Dakota school shooter was foiled by a heroic faculty member Wednesday after he shot the high school's principal. 

The 16-year-old student opened fire with a handgun, wounding Principal Kevin Lein in the arm following an argument.

Despite the wound, Lein got on the intercom to let the students and teachers know what had happened, assuring them he would be OK. 

Meantime, a heroic assistant principal, Ryan Rollinger, had just tackled the student, holding him down along with a teacher until police arrived.

Lein is reportedly doing well after suffering a flesh wound and has been released from the hospital.

Students praised Rollinger for stopping what could have been a tragic situation. 

9-Year-Old Girl Denied Inhaler During Coughing Fit, Per School Policy

WATCH: Bikini Models Play Border Wall Volleyball in New Carl's Jr. Ad

Must-Watch: Tim Tebow Surprises Cancer-Stricken Boy in Hospital

Fox News Channel Sets Viewership Records, Tops All Basic Cable Networks