Suspected gunman behind bars for attempting to kill officers during pursuit