PHOTO: Multnomah County District Attorney's Office
Now playing
01:34
Watch the emotional moment after a coach disarms student
WASHINGTON, DC - MARCH 05: Sen. John Cornyn (R) (R-TX) talks with Sen. Joe Manchin (D-WV) while walking to the U.S. Senate chamber for a vote March 05, 2021 in Washington, DC. The Senate continues to debate the latest COVID-19 relief bill.  (Photo by Win McNamee/Getty Images)
PHOTO: Win McNamee/Getty Images
WASHINGTON, DC - MARCH 05: Sen. John Cornyn (R) (R-TX) talks with Sen. Joe Manchin (D-WV) while walking to the U.S. Senate chamber for a vote March 05, 2021 in Washington, DC. The Senate continues to debate the latest COVID-19 relief bill. (Photo by Win McNamee/Getty Images)
Now playing
02:54
Axelrod breaks down Manchin's surprising move
sinema
PHOTO: CNN
sinema
Now playing
01:50
Senator's move has many on the internet outraged
PHOTO: FBI
Now playing
02:58
Trump State Department official charged in Capitol riot
John King Magic Wall 0305
PHOTO: CNN
John King Magic Wall 0305
Now playing
02:17
President Biden sending a team to the US-Mexico border
PHOTO: CNN
Now playing
02:53
Here's how Canadian schools have stayed open
This image was taken during the first drive of NASA's Perseverance rover on Mars on March 4, 2021. The team has spent the weeks since landing checking out the rover to prepare for surface operations.
PHOTO: JPL-Caltech/NASA
This image was taken during the first drive of NASA's Perseverance rover on Mars on March 4, 2021. The team has spent the weeks since landing checking out the rover to prepare for surface operations.
Now playing
02:17
NASA releases stunning new images from Mars
Rep john garamendi 0305
PHOTO: CNN
Rep john garamendi 0305
Now playing
02:33
Rep. Garamendi: Any lawmaker involved in Capitol riots ought to be thrown out of Congress
A view of Capitol Hill during heightened security concerns over possible protests or violence tomorrow March 3, 2021, in Washington, DC. - Washington's security posture has been bolstered after threats of a possible March 4, 2021, "breach" of the US Capitol, with the House of Representatives changing its voting plans to avoid gathering members on a day of potential unrest. (Photo by Brendan Smialowski / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
PHOTO: Brendan Smialowski/AFP/Getty Images
A view of Capitol Hill during heightened security concerns over possible protests or violence tomorrow March 3, 2021, in Washington, DC. - Washington's security posture has been bolstered after threats of a possible March 4, 2021, "breach" of the US Capitol, with the House of Representatives changing its voting plans to avoid gathering members on a day of potential unrest. (Photo by Brendan Smialowski / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
Now playing
03:18
Rep. Sarbanes: Failure to pass HR 1 'would split our democracy in two'
Senior Advisor to the President Jared Kushner  attends a press conference on September 4, 2020, in the Brady Briefing Room of the White House in Washington, DC. (Photo by Brendan Smialowski / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
PHOTO: BRENDAN SMIALOWSKI/AFP/AFP via Getty Images
Senior Advisor to the President Jared Kushner attends a press conference on September 4, 2020, in the Brady Briefing Room of the White House in Washington, DC. (Photo by Brendan Smialowski / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
Now playing
02:50
Jared Kushner disappears from Trump's inner circle
PHOTO: CBS Evening News with Norah O'Donnell
Now playing
02:14
Governor Cuomo accuser Charlotte Bennett speaks out
In this Dec. 1, 2020 file photo, Chairman of the Federal Reserve Jerome Powell appears before the Senate Banking Committee on Capitol Hill in Washington.  Powell told Congress on Wednesday, Feb. 24, 2021,  that the central bank will not begin raising interest rates until the Fed believes it has reached its goals on maximum employment  and warned that many people in the hardest hit industries will likely need to find different jobs.  (AP Photo/Susan Walsh, Pool, File)
PHOTO: Susan Walsh/AP
In this Dec. 1, 2020 file photo, Chairman of the Federal Reserve Jerome Powell appears before the Senate Banking Committee on Capitol Hill in Washington. Powell told Congress on Wednesday, Feb. 24, 2021, that the central bank will not begin raising interest rates until the Fed believes it has reached its goals on maximum employment and warned that many people in the hardest hit industries will likely need to find different jobs. (AP Photo/Susan Walsh, Pool, File)
Now playing
02:18
Jerome Powell: US economy 'some time' away from full recovery
A customer wears a face mask while shopping for flowers displayed for sale from a wholesale merchant ahead of the Valentine's Day holiday at the Southern California Flower Market on February 12, 2021 in Los Angeles, California. - While some florists note an increased demand for socially distant gifts, the Covid-19 pandemic has impacted global supply chains and shut down most large events including weddings where flowers are popular. The Valentine's Day and Mother's Day holidays are historically the two busiest days of the year for floral businesses. (Photo by Patrick T. FALLON / AFP) (Photo by PATRICK T. FALLON/AFP via Getty Images)
PHOTO: Patrick T. Fallon/AFP
A customer wears a face mask while shopping for flowers displayed for sale from a wholesale merchant ahead of the Valentine's Day holiday at the Southern California Flower Market on February 12, 2021 in Los Angeles, California. - While some florists note an increased demand for socially distant gifts, the Covid-19 pandemic has impacted global supply chains and shut down most large events including weddings where flowers are popular. The Valentine's Day and Mother's Day holidays are historically the two busiest days of the year for floral businesses. (Photo by Patrick T. FALLON / AFP) (Photo by PATRICK T. FALLON/AFP via Getty Images)
Now playing
02:39
States rolling back Covid-19 safety measures as cases continue to rise
PHOTO: CBS' 60 Minutes+/Getty Images
Now playing
01:45
'QAnon Shaman' says he has one regret about January 6
psaki
PHOTO: CNN
psaki
Now playing
00:56
Psaki fires back at Trump testing czar over vaccine claims
Now playing
02:30
Alabama governor explains why she's ending mask mandate
PHOTO: CNN
Now playing
01:35
See what security looks like outside US Capitol
(CNN) —  

A high school football and track coach in Portland, Oregon, was celebrated as a hero earlier this year after he disarmed a student with a shotgun.

The student walked into a classroom at Parkrose High School in May, intending to use the firearm to take his own life, the Multnomah County District Attorney’s office said in a statement last week.

At the time, reports said the coach, Keanon Lowe, tackled the student. But according to emotional surveillance footage released by the district attorney’s office Friday, Lowe did nothing of the sort.

Instead, he embraced the student.

Footage shows the student, identified as Angel Granados-Diaz, walking down the hallway where the camera is filming. He moves out of view as he enters the classroom, right behind Lowe. Seconds later, people begin running through the hallways.

Lowe is seen backing out of the classroom, with the shotgun in his right hand. With his other arm, the coach holds the student at arm’s length. Another staff member enters the hallway and takes the gun from Lowe.

Then Lowe wraps the student in his arms. The coach rubs his back and holds him close. They’re later seen sitting on the floor of the hallway as police arrive and arrest the student.

Lowe, who was a standout wide receiver for the University of Oregon between 2010 and 2014, told reporters at the time that they had an “emotional” moment together, according to CNN affiliate KATU.

“In that time, I felt compassion for him,” Lowe said. “A lot of times, especially when you’re young, you don’t realize what you’re doing until it’s over.”

The district attorney’s office said Granados-Diaz had made suicidal statements to another student. He never pointed the shotgun at anyone but himself and never fired the gun on campus, the district attorney’s office said. He did try to pull the trigger, but the shotgun, which only had one round, did not fire. That is when Lowe took the firearm from him.

Lowe’s actions were “decisive, courageous and compassionate,” said Adam Thayne, an attorney for Granados-Diaz, in a statement.

Thayne reiterated that the student had no intention of harming anyone besides himself and is receiving treatment.

“Angel would like to thank Mr. Lowe, the first responders, the Parkrose High School community, and all those who have supported him throughout this process,” Thayne said. “He is looking to move forward in the best way possible.”

Granados-Diaz eventually pleaded guilty to one count of unlawful possession of a firearm in a public building and one count of unlawful possession of a loaded firearm in public, the office said. He was sentenced last week to three years of probation.

“Through the course of the investigation it became clear to law enforcement and our office that Mr. Granados-Diaz did not have the intent to hurt anyone other than himself while at Parkrose High School,” Deputy District Attorney Parakram Singh said.

Under the agreement, Granados-Diaz will receive mental health and substance abuse treatment, the district attorney’s office said.

CNN’s Amir Vera contributed to this report.