A suspected gunman is dead and two officers are recovering after police said a routine traffic stop turned into a shootout.