Confusing, chaotic scene leads to shooting death of K-9 officer by deputy