The head of China 's environmental protection agency has resigned following a chemical spill that polluted a major river and forced the shutdown of water supplies in parts of the country 's northeast .