Using civilian buildings like a hospital for military purposes is a war crime.
If Israel doesn't bomb these military installments it will simply encourage more war crimes by Hamas. Hiding behind innocent people cannot provide immunity because it just encourages more of it.