Original: When he first saw the gunman, he thought he was a plainclothes policeman assigned to guard the church.
Updated: At first he thought the gunman was a plainclothes officer assigned to guard the church but he quickly found out otherwise.