MOGADISHU, Somalia — Nearly 100 members of the Shabab, the Qaeda-linked insurgent group in Somalia, were killed in separate strikes this week, according to Somali and American officials.

More than a dozen militants were killed in a United States airstrike 20 miles north of the capital of Mogadishu, according to Samantha Reho, a spokeswoman with the United States Africa Command. The Friday strike was carried out in coordination with the Somali government, she said in an email.

It was the 23rd American airstrike in the country this year, and the second in 24 hours. On Thursday, airstrikes killed “several militants” in the Bay region, about 100 miles west of Mogadishu, according to a statement from the Africa Command.

Separately, the Somali National Intelligence and Security Agency killed 81 Shabab fighters earlier this week in Jilib, in southern Somalia, government officials said on Saturday.