That was a poor decision.
Very likely that if the decedent actually slapped the back of the police car, it was in an attempt to NOT be shot while startling an LEO.
That could very well have been her way of announcing her presence in a non-threatening way, rather than approaching the LEO from the blind side unannounced.
This shooting looks worse and worse as the details dribble out.