Sheriff: Gunman killed in shootout after murdering woman