A hunt's underway in Texas for a gunman who shot and killed a San Antonio police officer sitting in a squad car during a routine traffic stop.