Football Coach Disarms Student With Gun

A high school football and track coach disarmed a student who had a shotgun in a classroom.
It happened in Portland, Oregon. The video of the teacher hugging the student has gone viral.
The student walked into a classroom intending to shoot himself. He never pointed the gun at anyone else.
When the gun jammed the coach stepped in and disarmed him.
The student made suicidal threats to other students.
He has plead guilty to one count of unlawful possession of a firearm in a public building, one count of unlawful possession of a loaded firearm in public.
The student was sentenced to three years of probation and will receive mental health and substance abuse treatment.
Was the punishment fair?