The World Health Organization said Thursday that the last hospital in Gaza providing cancer and cardiac care had stopped functioning after an Israeli attack.