The United States and other western intelligence agencies see Somalia as a potential safe haven for terrorists .