In footage aired on Somali-television, Flanagan stood beside local Somali leaders and thanked the community for its friendship.