This isn't a story mission, it's random side mission where everything shown is entirely the actions of the player. If you wanted, you could have continued to flee the cops without shooting them. On the flipside, you could have killed the attacker before he fled.