Israel will do “whatever necessary” to defend itself, Israeli military spokesperson Daniel Hagari said.