IMO, if the Muslim countries or their rulers refuse to give bayah for no legitimate reason, they ought to be fought because they would be standing in the way of an Islamic duty. But, at the same time, it's haram to kill Muslims. Maybe attacking with sleeping gas (I'm serious) or imprisoning them all would be a solution. wallahu a'lam