(CNN) – Earlier this year, an American football and athletic coach in Portland, Oregon, was celebrated as a hero after disarming a student with a shotgun.
The student entered a classroom at Parkrose High School in May, with the intention of using the firearm to take his own life, the Multnomah County District Attorney's Office said in a statement last week.
MIRA: Puerto Rican authorities investigate shooting that left 6 deadRELATED
At that time, reports say the coach, Keanon Lowe, knocked the student down. But according to the emotional surveillance images published by the district attorney's office on Friday, Lowe did nothing like that.
He hugged the student.
The images show the student, identified as Angel Granados-Díaz, walking down the hall where the camera is filming. He moves out of sight when he enters the classroom, just behind Lowe. Seconds later, people start running through the halls.
Lowe is seen leaving the classroom, with the shotgun in his right hand. With his other arm, the coach holds the student with the arm extended. Another staff member enters the hall and removes Lowe's gun.
LOOK: A mother prevented a school shooting by calling the police after receiving racist messages
Then Lowe wraps the student in his arms. The coach rubs his back and hugs him. They are later seen sitting on the hall floor when the police arrive and arrest the student.
Lowe, who was a great recipient of the University of Oregon between 2010 and 2014, told reporters at the time that they had an "emotional" moment together, according to KATU, a CNN affiliate.
"At that moment, I felt compassion for him," Lowe said. "Many times, especially when you're young, you don't realize what you're doing until it ends."
The district attorney's office said Granados-Díaz had made suicidal statements to another student. He never aimed the shotgun at anyone but himself and never fired the gun on campus, the district attorney's office said. He tried to pull the trigger, but the shotgun, which had only one round, did not fire. It was then that Lowe removed his gun.
Granados-Díaz finally pleaded guilty to a charge of illegal possession of a firearm in a public building and a charge of illegal possession of a publicly loaded firearm, the office said. He was sentenced last week to three years probation.
MIRA: Videogame on school shooting causes controversy in the US
"During the course of the investigation, it became clear to the authorities and our office that Mr. Granados-Díaz did not intend to hurt anyone but himself while he was at Parkrose High School," said the deputy district attorney Parakram Singh
Under the agreement, Granados-Díaz will receive mental health and substance abuse treatment, the district attorney's office said.
CNN's Amir Vera contributed to this report.