WASHINGTON — Two American service members were killed and a third was wounded Wednesday night in an operation in the same part of Afghanistan where the military dropped its most powerful conventional weapon two weeks ago, the Pentagon said.

The soldiers were taking part in a lengthy raid that was supported by airstrikes from American warplanes and that was targeting the Islamic State in Nangarhar Province, said Capt. Jeff Davis, a Pentagon spokesman. A number of Islamic State fighters have been engaging in a long-running battle with Afghanistan security forces in the Achin district.

Achin is where the Pentagon deployed on April 13 what is nicknamed the “mother of all bombs,” aimed at Islamic State fighters who were hiding in caves and a tunnel complex. The Defense Department deemed the operation successful, but fighting has continued there and the Afghanistan military, supported by the Defense Department, has yet to clear the area of remaining Islamic State fighters.

Defense Department officials were waiting until immediate family was notified before releasing the names of the two soldiers killed. Officials said that a third soldier was wounded when they came under attack during the raid.