A hazardous materials incident that had neighbors in Thousand Oaks sheltering in place for hours Wednesday night involved legal chemicals.