The accomplice will be tried for robbery and for murder (he is liable for the death of the dead robber).
The innocent shooter will likely be formally exonerated by a grand jury.
Yep.