The Secret Service said in a statement the White House was closed as a precaution as emergency crews investigated, and local fire officials determined that the substance was not hazardous.