This episode of the New York Times' The Daily goes over the various nuances of the international law, the obligations and responsibilities of various nations / states / actors, etc. And it doesn't matter if Israel agrees with it or not, they are absolutely subject to the obligation to protect civilians.