Gunman among 7 dead after shootout