Surveillance video from a 2014 shooting at Seattle Pacific University was released on Tuesday, showing a student pepper-spraying an alleged shooter, seizing his gun and detaining him.

The King County Prosecutor's Office released 18 DVDs of video from days before and during the June 5, 2014, incident that left one student dead and two others wounded, KING-TV reported.

Three minutes of the footage shows the take-down of a 27-year-old Aaron Ybarra, who has pleaded not guilty to murder and other charges in the case.

The footage shows the moment Jon Meis, a student safety monitor, heroically tackles Ybarra to the ground and manages to wrangle the shotgun out of his hands.

Hero: This is the moment that Seattle Pacific University student Jon Meis (right) lunges at shooter Aaron Ybarra (left), who is armed with a shotgun, during the campus shooting on June 5, 2014

Surveillance footage: Acting on a court order, the King County Prosecutor's Office on Tuesday released surveillance video of the 2014 shooting at Seattle Pacific University

Brace: Meis manages to get the shooter on the ground and grab the shotgun from his hands. He also pepper sprayed Ybarra and held onto him until police arrived

First court appearance: Shooting suspect Aaron Ybarra, left, is led in chains to a court hearing at a King County Jail courtroom Friday, June 6, 2014, in Seattle. He has pleaded not guilty to murder and other charges

Hero: Jon Meis, 26, is credited with stopping the would-be murderous rampage by tackling the gunman. Meis is seen here with his fiancee Kaylie Sparks

That portion of video shows Ybarra entering the lobby of a building on the small private Christian school's campus. Ybarra is holding a shotgun. He points it at a student who is sitting at a table reading and doesn't seem to notice Ybarra.

Ybarra waves the gun around, and another student who doesn't seem to notice him can be seen sitting at a different table. A female then can be seen descending a set of stairs. When she reaches the ground floor, the video shows Ybarra pointing the gun at her and firing. She seems to flinch and stands for a few seconds before running out of the room. The other two students at separate tables then flee.

At the moment the woman who is shot turns to leave the room, Meis can be seen running into the lobby, approaching Ybarra from behind.

As he enters the room and charges Ybarra, Meis sprays Ybarra with what police have said was pepper spray. Ybarra falls to the floor as Meis grapples with him. Meis then disarms Ybarra and runs out of the room with the weapon.

Ybarra is seen rolling on the floor as Meis reenters the room and tackles Ybarra again as Ybarra struggles to pull out a knife. A male student comes down the stairs and walks over to Meis and Ybarra, kicking away the knife and helping Meis hold Ybarra down.

Police say Ybarra killed one male student outside before entering the building. Police said pellets from that shot also injured another student.

This is the scene of the deadly shooting inside a science building at Seattle Pacific University. Shotgun shells can be seen littering the ground

Ybarra later described to police how he had planned the shooting. Police say Ybarra told them he had a general hatred for the world and battled alcoholism. Ybarra had stopped taking his medications and seeing a psychotherapist before the shooting.

He was not a student at the college and had no affiliation to it.

The Washington state Court of Appeals in December upheld a ruling ordering the footage released under Washington's Public Records Act.

The school said in a statement Tuesday they were disappointed with the release of the surveillance videos.

'We, along with others, have pursued legal action to stop the videos' release in order to protect individual privacy and prevent the emotional distress these images will have on our community, the school said.

'Seattle Pacific University remains strong and resilient as a result of God's faithfulness to us. Our foremost concern continues to be the welfare and safety of not only our students, faculty, and staff, but of the victims and witnesses of the tragedy.'

Medics work on one of the victims from the deadly Seattle Pacific University shooting before taking the subject to the hospital for treatment