The full story isn't out but some points:
1. The crook was leaving when the agent shot him in the leg?
2. Other LEOs arriving may have (we don't know) mistakenly shot the agent.
3. There is a general problem with friendly ID?
If the BG was not threatening lethal force at the time and was leaving, was it the right thing to shoot him, challenge, let go and trail, etc?
Hindsight bias is wonderful and of course, I would have blah, blah.
See how this plays out.