Residents were evacuated after fumes from a chemical spill inside an apartment building led to a hazmat response on Thursday, officials said.