Hastings student admitted he tried to shoot, but gun malfunctioned