Every third world country with substantial coastline(maybe excepting Vietnam) has pirates. Some have terrorists also.
Somalia doesn't have a government. They JUST have terrorists warlords.