WASHINGTON — An American military airstrike on Tuesday killed more than 100 people who were identified by the Pentagon as being affiliated with the Islamic militant group Shabab, continuing a stepped-up pace against targets in Somalia, officials said.

The United States Africa Command said in a statement that the airstrike was carried out 125 miles northwest of Mogadishu, the Somali capital. The strike comes after President Trump relaxed restrictions on American military commanders in Somalia.

Separately, the command also said that it conducted airstrikes in Libya, on Friday and Sunday, against Islamic State militants. Defense officials did not indicate how many people were killed in those attacks.

The Trump administration has escalated its campaign to defeat the Shabab, the group responsible for the 2013 attack on the Westgate mall in Nairobi, Kenya. The siege on the upscale mall, where dozens were killed, heightened American concerns that the Shabab’s desire to inflict casualties extended beyond its base in Somalia.