NAIROBI, Kenya — Islamist militants in Somalia carried out multiple coordinated attacks against African Union peacekeeping forces on Sunday and claimed to have killed at least 59 Ugandan soldiers.

Ceaser Olweny, a spokesman for the Ugandan peacekeepers, said four soldiers had been killed, and six wounded.

The Shabab, a Somali terrorist group affiliated with Al Qaeda, made the attacks on three military bases and two Somali government outposts in the Lower Shabelle region, a Shabab stronghold near Mogadishu, the country’s capital.

Mr. Olweny said the attacks were coordinated.

Somali officials confirmed the attacks to the local news media.