The Israeli military has confirmed it targeted the hospital, calling it a Hamas “command and control centre”.