Officer was targeted for his gun