Im not talking about terrorisem. Im talking about the simplest situation. A force is fighting house to house in a large crowded city. It is underfire, has casualties and is surrounded. In order to extract the force safely and with out casualties there is a need to emply armored vehicles, helicopter fire etc. Using this ammount of fire power may well cause civilian casualties. If at that point you choose not to risk civilians to get your troops out, you have no buissnes fighting in the first place.
That is just one scenario, I can give a dozen.
OK let's follow the example.
1. Force fighting house to house - what is the objective and why are there, what are the friendly forces, enemy forces, what is their mission and more importanly what is the concept of operations?
2. Fighting in a large, crowded city - why is it still crowded with warfighting going on? Most populations bug out and try to find safer havens, especially when the man with the big stick is coming to play.
3. Force surrounded, needs extraction, the only way to do it is to employ massicve and overwhelming firepower (paraphrased). OK that could be the last resort, but you'd really better be sure that this is the only way, because if it is going to harm your long term objectives, you might need to think again. On the other hand it could back them up, by showing how ruthless you're willing to be - but that is probably not going to help your longer term plan, as you need to have pacified safe(ish) areas to work from and with to move forward - there is no modern army that can afford to spend manpower and materiel just guarding city blocks indefinitely.
To my mind this is simple military common sense, as is protecting you men and the mission. The thing is as a leader of soldiers, you sometimes have to put them in harms way, that is their job and yours.
Not nice, when you lose men, but that is the nature of war and that is the realistic lot of a soldier. That is not the realistic lot of a civilian, who happens to get caught in the middle of a high tech brawl, getting killed by a weapon that cost more than they made in a decade. Then consider the ill feeling that this creates amongst friends and family, effectively becoming the fertile ground for terrorist to grow, creating a cycle.
I feel that coountries should be able to do better than that, generally there are more assets and resources available, so taking a slightly quieter approach, could yield better results and I haven't got any country in mind when I say this, it is a problem across the world.