Hamas confirmed the death of Mohammed Deif, head of its military wing, six months after Israel announced he was killed.