Special agent resigns as CID investigation opens