The assault, launched by the country's Al-Qaeda-linked rebels in Mogadishu on Thursday, killed three soldiers from the union's local peacekeeping mission known as AMISOM, and a civilian contractor.
"These individuals sacrificed their lives in an effort to bring lasting peace and stability to Somalia," State Department deputy spokeswoman Marie Harf said in a statement yesterday.
"The United States strongly condemns the December 25 attack," she added.
Four Shebab rebels, who are fighting to topple Somalia's internationally-backed government, were killed and another four captured in the attack, officials said.
"We express our deepest condolences to the families of the military and civilian personnel who were killed in this cowardly terrorist act," she added.
The Shebab said it carried out the attack against what it said were "Ugandan mercenaries."
Officials did not give the nationalities of the AMISOM troops who were killed, but a contingent of Ugandan soldiers is in charge of the base.
The AMISOM force, deployed since 2007, currently counts some 22,000 African Union troops.
