Coach disarms, then embraces troubled student with gun