What we need is to embark on nation building as we did after WWII. We destroyed Afghanistan’s government. At least, whatever was left of it after the USSR and the subsequent civil war destroyed most of the rest of that country.
We have to make it right or it will just fester again as it did before 9/11 happened. That means going in with construction teams and teaching teams and funds and good will and show these people what being part of the global world can do for them in the long term. That takes time, so let’s stop wasting it.