Four students were taken into custody after police said they flashed gang signs and brandished a loaded gun.