So apparently the dog jumped on the officer from behind and his gun went off because his finger was on the trigger thus shooting his partner the back
Yep.
If he shot he in the shoulder he probably had the gun up in a firing position rather than pointed down in a guard or caution position. And he had his finger on the trigger. While he was behind his partner. There goes the whole Cooper rulebook.