If you want the legal details of why the destruction of Kakhovka Dam in Ukraine was a war crime and a violation of international laws of war, see this deep analysis by Tom Dannenbaum.
https://www.lawfareblog.com/what-international-humanitarian-law-says-about-nova-kakhovka-dam