Hamas has confirmed that its military chief, Mohammed Deif, was killed in an Israeli air strike in the Gaza Strip last year.