DOHUK, Iraq – The United States launched a series of airstrikes against Sunni militants in northern Iraq on Friday, using Predator drones and Navy F/A-18 fighter jets to destroy rebel positions around Irbil.

The strikes were aimed at halting the advance of militants with the Islamic State of Iraq and the Levant (ISIL) toward Irbil, the Kurdish capital, which is home to a U.S. Consulate and thousands of Americans. The action marked the return of the United States to a direct combat role in a country it left in 2011.

Warplanes dropped 500-pound laser-guided bombs on a number of targets: a mobile artillery piece that was being towed from a truck and had begun shelling Irbil, a stationary convoy of seven vehicles, and a mortar position. The military also used a remotely piloted drone to strike another mortar position on Friday afternoon. After the first strike, it said in a statement, the militants "returned to the site moments later" and "were attacked again and successfully eliminated."

Defense officials expressed confidence that they could achieve within a few days one of President Obama's stated goals: stopping the advance of the militants on Irbil.

Less certain was whether the other objectives Obama had announced — breaking the siege on tens of thousands of refugees stranded on Sinjar Mountain and protecting Americans in Baghdad — could be achieved as quickly, given the instability of Iraq's internal politics and the difficulty of protecting and evacuating the stranded people.

While Obama said Thursday night that he had authorized military strikes, if necessary, to help liberate the refugees on Sinjar Mountain, all of the military attacks on Friday were directed toward stopping the militants' advance.

The leader of ISIL sent a defiant message to the United States in an audio statement posted on YouTube in June, and recirculated on Twitter on Friday. "This is the message of the leader of the faithful," the leader, known as Abu Bakr al-Baghdadi, wrote in a message addressed to "America, the defender of the cross."

"You should know, you defender of the cross, that getting others to fight on your behalf will not do for you in Syria as it will not do for you in Iraq," he said. "And soon enough, you will be in direct confrontation — forced to do so, God willing. And the sons of Islam have prepared themselves for this day. So wait, and we will be waiting, too."

ISIL fighters had come within 25 miles of Irbil in a rapid advance that took U.S. military planners by surprise.

Rear Adm. John Kirby, the Pentagon spokesman, said in a statement that ISIL fighters near the mortar positions had been "successfully eliminated," although he did not say how many had been killed.

Kurdish officials said the first round of U.S. bombs struck in and around Mahmour, a town near Irbil.

Kurdish fighters have been pressed hard by militant fighters, who have seized several towns near Irbil from the Kurds and taken the Mosul Dam, one of the country's most important installations.

Many members of religious minorities in northern Iraq, including Christians, have fled to Kurdish territory to escape the advancing militants, who have imposed harsh fundamentalist rule in areas they control. Others — including tens of thousands of Yazidis, who follow an ancient faith and are stranded in a mountainous area to the west — have been trapped and besieged by the militants. Delivering aid to that group is one of the purposes of the mission in Iraq, Obama said.

Britain, a close ally of the United States in wars in Iraq and Afghanistan, said Friday that it would not take part in the current military action but would provide humanitarian aid and technical assistance.

Turkey, a NATO ally that borders northern Iraq, said on Friday that it, too, would increase humanitarian aid.

Nikolay Mladenov, the United Nations' top envoy in Iraq, said the airdrops on Friday had reached a small fraction of the 100,000 people trapped on Sinjar Mountain.

The civilians are trapped between front lines. Fighting would have to stop to allow them to leave, or the warring parties would have to agree to let them pass into safety.