Student arrested for bringing loaded gun to school