The two students, 14 and 15-years-old, apparently fashioned a small homemade device and detonated it inside the school.
They are being questioned.
Eyewitness News is told students and teachers were forced to wait outside as the school was ventilated.
Some people who were in the school were reportedly treated as a precaution by emergency workers, but they did not appear to be hurt.
Two teens and two female students were taken to a nearby hospital as a precaution.
Meantime students in the science class and those in an adjoining room were temporarily relocated to a church across the street.
There was no structural damage in the classroom and students were allowed to return after air samples were taken.
[GET EYEWITNESS NEWS DELIVERED: Click here to sign up]
MORE NEW YORK AND TRI-STATE AREA NEWS
SEND TIP OR PHOTO || REPORT TYPO || GET WIDGET
EYEWITNESS TWITTER || FIND US ON FACEBOOK