If the officer was attacked he had the right to defend himself.
From the article: “forensic evidence showed the deputy’s vest had no signs of a stabbing”.