It's not justifiable for ANY side to target civilian targets of any sort
While Hamas' tactics are centered around asymmetric warfare, and blending in with civilian populations, the IDF needs to respond accordingly, and without targeting their own population with munitions.