Authorities say a student sprayed the chemical in a third floor classroom.
Twelve students were taken to area hospitals complaining of breathing problems. Other students were relocated to the gymnasium.
The building was not evacuated and classes resumed about one hour after the incident.