Israel admits military's 'failures' led to killing of Gaza medics