The alleged gunman is a 20-year-old student whose mother, a sheriff's deputy, owns the gun used, police say.