This was the first visit to Somalia by a senior US official in over a decade, US State Department spokesman Sean McCormack said in a statement issued in Washington.