It was the fifth raid since April as American troops ramp up operations in Somalia.
Yao asked the UN to up humanitarian assistance and socio-economic development support to Somalia.
Ali's lawyer said his client was a professional soldier who received training in the U.S.
In 2013, he refused to swipe t-shirts with an Israeli player in a display of support for Palestinian rights.
The ambassador indicated that Turkey will continue to support the Somali government.
Several countries have shown interest in facilitating talks between Somaliland and Somalia.