If Israel wants to keep occupying an area, yes they do have the responsibility to keep supplying vital supplies to Gaza. Even if some of them would be terrorists. And while some of them could be called terrorists, you do not have permission to deliberately cause harm to everyone in largish area.
You being attacked does not allow you to commit war crimes, genocide or ethnic cleansing. This is not a grey area.