An undercover police officer "chased himself round the streets" for 20 minutes after a CCTV operator mistook him for suspect.