A major US port was shut down after nine containers of "highly explosive material" were accidentally punctured, officials said, urging that part of the city be evacuated.