An American military drone strike over the weekend in southern Libya killed a top recruiter and logistics specialist for Al Qaeda’s branch in northwest Africa, the Pentagon said on Wednesday, and a senior military official warned of more attacks on extremists there.

The military’s Africa Command said in a statement that the attack killed two militants, one of whom was identified as Musa Abu Dawud, a high-ranking official in Al Qaeda in the Islamic Maghreb, known as AQIM.

Mr. Dawud trained Qaeda recruits in Libya for strike operations in the region, and provided logistics, money and weapons that enabled the group to threaten and attack American and Western interests, the military statement said.

Until now, the Pentagon had focused its counterterrorism strikes in Libya — eight since President Trump took office — almost exclusively on Islamic State fighters and operatives farther north. Over several months in 2016, the military conducted nearly 500 airstrikes in the coastal city of Surt to destroy the Islamic State’s stronghold there.