A federal judge in New Jersey initially ordered Scott Fairlamb released on bond with electronic monitoring, but detained him after prosecutors objected, according to his lawyer.
Wallkill Valley Regional School Superintendent said the district will undertake a thorough investigation of "allegations of racist and inappropriate conduct."
The blast left sheet rock and fiberglass insulation in the parking lot of Wallkill Regional High School and damaged the building, which was closed on Wednesday.