The soldier who attacked a military base in Mogadishu and killed five foreign troops was a former member of the militant group al-Shabab.
Multiple sources report that the attacker had defected from al-Shabab before being recruited as a soldier by the Somali national army.
It has exposed the lack of strict background checks in the recruitment process of army soldiers.
Clan-based bias, corruption and inefficiency are all factors, according to the Somali news outlet Garowe Online.
Of the five soldiers killed at General Gordon military base, four were from the UAE and one was Bahraini.
The gunman is said to have opened fire on them when they were praying.