just so you know how combat in an urban environment works, the defenders always have the upper hand when it comes to the element of surprise, whether it be ambushes or booby traps, they way to combat that with an invading force is fire power,you arent sure if an alleyway is booby trapped? throw a grenade in there, militants are shooting at you from a building? call for artillery, or better yet an airstrike,safest option is to topple the whole building down.
in urban warfare more firepower= safer troops.
its the reason there are so many casualties, any invading force has to decided between collateral damage and loss of soldiers lives, was the same in Iraq and Afghanistan, its why there were tens of thousands civilians dead there as well.