Police in Texas were left red-faced after a burglary suspect they had detained drove off in their car.