Insurgencies are battles of hearts and minds. Somalia is an unsuitable terrain(excluding Puntland and parts of SL) for guerrilla warfare the Sayid and Darawiish only really managed due to the sheer will of anti-colonialism coupled with the technology of the times not being so advanced.its not right but those civilians need to leave the war zones besides a lot of them are AS supporters and family members of AS were not waiting around for al shabab to bomb liberated civilians who fought for thier freedoms in garowe mogadishu and kismayo
if it was up to me taking back those areas with or without civilian casualties would be my aim
If you close down on AS territory and push them away from strategic roads to major cities you would cripple them. AS are not so strong that Somalis have to resort to such tactics rather Somalis are so weak that they are incapable of taking a village. Even if those villages were decimated with airstrikes like Asad did there still wouldn’t be much progress because the ground forces themselves are simply incapable.
Civilian casualties imo are to be expected but targeting civilian areas and becoming a mooriyan isn’t going to be the game changer you think.