A Carlsbad police cruiser caught fire in San Marcos after a suspect opened fire on the car during a pursuit early Wednesday morning.