Well, there are lots of things amiss in Somalia. The piracy to me seems like the tip of the iceberg. If there were an easy solution to stop the piracy, it would have been accomplished by now, if not reduced to a marginal issue.
While it's a terrible thing that those 4 Americans lost their lives recently, it's a much greater travesty that the so-far-20-year Somali civil war death toll is up to 300,000 or 400,000.
That's equivalent to about half the population of Washington, D.C.
Oh, and toxic waste and illegal fishing.
Somalia has been metaphorically raped repeatedly over a couple of decades now, and everyone is crying foul about the pirates but don't seem all that concerned about stopping the other stuff that's happening in the area.
Yes, the piracy is bad. Yes, it would be great to stop it. Throwing naval power at it won't necessarily stop it. They've tried that. They're still trying it.