Somalia, allies batter al Shabaab, but gains may be fragile