Gunman accused of killing officer now dead