The destruction of a major dam and hydroelectric power plant on the front lines of the war in Ukraine may dry up the rich agricultural region of southern Ukraine, sweep pollutants into waterways and upend ecosystems that had developed around the massive reservoir whose waters are now rapidly flooding downstream, although the full impact could take months or even years to understand, officials and experts said.