Footage shows the officer confronting with the attacker who was able to free himself and attempted to snatch his automatic weapon, but was shot dead