State media in China say authorities have stopped a toxic chemical slick from reaching the major southern metropolis of Guangzhou by closing a dam on the Bei River .