Couple of points for thought. I've mentioned most in other threads on this topic.
The US vs. Somalia is like the NFL vs. Popwarner. We could invade and stop this in less than 30 days. However, we have to remain there for years until they could govern their own country.
80% of their citizens are illiterate!! That's not exaggeration to make a point, that's the level. It would take more than a generation to fix that.
This isn't a question of how, we have many solutions to.... how. This is a question of priority and whether you are willing to make this one. Many of the nuclear bomb button pushers are the same people that sit in Starbucks after we've invaded and want our troops to come home.
Finally, think about those that settled the wild west in the US. Virtually to a person, they all lived in poverty. Their solution (in total) was not crime. There is more to their motivation in Somalia than poverty. Discuss among yourselves..........