Al-Shabab is battling Somalia's government for control of the country.
Islamist fighters beheaded some of the captured Somali soldiers after briefly taking over the camp, witnesses told AFP news agency.
At least 50 Burundian soldiers died last week in an al-Shabab attack on an African Union military base.
Amisom has not commented on the reports.