When police arrived on scene, the former officer handed a child he was holding to a woman and brandished a gun before being shot