You are only saying this bcos it's Kenya, I hope that u also regard the US, UK, Turkish, Russian militaries as weak, for they are also occassionally being "fucked up" by the terrorists they are waging war against.
The US lost nearly 2500 soldiers in their Afganistan/Iraq operations as of 2016! Source:
2,500 Soldiers Have Died in Afghanistan and Iraq Under Obama.
That means that in a year, the US was loosing about 165 soldiers in a year, for the 15yrs of their operatons there. And remember I havent included the casualties suffered by the other militaries taking part in that operation in Aganistan, including the Nato members, the Afghani forces,Iraqi forces (whose militaries are kitted and trained by the Americans) Pakistan etc.
Kenya on the other hand has lost less than 300 soldiers since its incursion in Somalia in 2010.
Seven years ago the military has been losing just around 50 soldiers p.a. Meaning our operations in Somalia, despite those setbacks that are making u think that our military is weak and its operations poorly strategized is better streamlined. Same tactics being used by the Islamic militants in the middle east against the invading forces are also applied by the Alshbb in Somalia against the Amisom.