Russia was in control of the dam, had mined it, and had in recent weeks let water levels go up to unprecedented levels. Something like 80 settlements will be completely inundated, the largest nuclear power plant in Europe loses its cooling reservoir and attacks over the river will be impossible for weeks.
I don't think Ukraine did it.
(getting information from the thread in /r/worldnews).