What about the robber leaving the scene of a crime? Leaving the scene of a crime is illegal, isn't it?

Would that not justify the shooting? The victum was only trying to prevent the robber from leaving the scene.