Let me paraphase Thomas Jefferson, he said, people who compromise their liberty for security, end up loosing both.
This is NOT the job of the military...ARMY is designed for Border Protection from enemy nations or for an Invasion. It is not equipped and trained to combat millitant. Lets make that dinstinction. You do not use a Hammer for everything. You have a variety of other tools. We need a different approach. Military is a heavy handed approach which does more harm than good. It alienates the masses and no insurgency/militancy can be defeated without the support of the local masses.
Study the change of US tactics in IRAQ. Working with the locals...