The comments came amid a fragile ceasefire between Israel and Hamas.