We don’t know the actions prompting the shooting.
We do know why the cops arrived.
Should she have been killed? Probably not but do we know if she had a gun or some other weapon?
Should the cops been there to begin with? Probably not, they could have picked the perps up on the street which is to say the swat team had little business being there to begin with.
Again though, the cops were there legally. She was part of the reason they came in the first place.
Had she not been part of the original problem she’d not be dead.