The wall of a major dam in southern Ukraine collapsed Tuesday, triggering floods, endangering Europe’s largest nuclear power plant and threatening drinking water supplies as both sides in the war rushed to evacuate residents and blamed each other for the destruction.