The veteran officer was setting out traffic cones outside a church when he was fatally struck, an official says.