For example, the United States.
Massive amounts of analysis and punditry has been offered regarding what do about non-elected terrorist regimes and non-state terrorists.
But what of democracies that engage in terror? Is analysis lacking because would-be analysts are too caught up in the mythology of the same regimes, or because coercion is off the table and imagining non-coercive solutions isn’t fun? Why should coercive solutions be off the table anyway? A criminal organization with fair internal governance is still a criminal organization. Those who commit and authorize crimes should be brought to justice, their organizations brought under supervision (one idea involving more democracy: extra-jurisdictional franchise), and laws to deter and penalize such crime strengthened.
Or we could leave the solution to the market, assuming that democratically elected terrorist regimes will eventually bankrupt themselves.