Basic tactics:
Bomb and shoot the enemy wherever they are.
Once the civilian population understands that you are willing to inflict collateral damage, they will become your greatest ally.
They will turn on the terrorists and either kill them for you or turn them out in the streets.
Make the people hate the enemy for bringing you to them.
(And if the "civilians" choose to harbor the terrorists, they are fair game anyway.)