Hastings teen who brought gun to school pleads guilty