Updated

A Saudi-born follower of al Qaeda who was convicted in March of killing two U.S. service members in Afghanistan received a life sentence Friday in a New York courtroom.

But Ibrahim Suleiman Adnan Harun, a self-described al Qaeda "warrior," refused to attend his sentencing.

"I can't think of a more serious crime," U.S. District Judge Brian M. Cogan said as he announced the sentence for Harun in a Brooklyn, N.Y., courtroom where a monitor showing the entrance to Harun's cell rested near his lawyers. Harun also had refused to attend his trial last year.

The judge rejected Harun's claim that he was more a soldier than a terrorist, saying Harun wanted to kill "dozens or maybe hundreds of Americans" and those from other nationalities, as well.

"I'm confident the defendant doesn't differentiate whether they are civilians or soldiers," Cogan said.

A jury last March convicted Harun after prosecutors said he confessed while in Italian custody that he threw a grenade and shot at an American military unit in a 2003 ambush that killed Army Pvt. Jerod Dennis, of Antlers, Okla., and Air Force Airman Ray Losano, of Del Rio, Texas.

While on the run, Harun later masterminded a failed plot to bomb a U.S. Embassy in Nigeria, the government said. He was under the direct supervision of al Qaeda higher-ups, including some still held at Guantanamo Bay, it said.

The Saudi-born defendant who claims Niger citizenship had insisted he was a "warrior" who should face a military tribunal rather than a civilian court prosecution.

Cogan said soldiers in wartime don't target "embassies" in third-world countries.

Harun, 47, was extradited from Italy to the U.S. in 2012.

The judge said Harun told prison officials Friday: "This is not my court. That is not my judge."

Cogan called Harun "self-absorbed," noting that he was willing to speak to the judge and his lawyers as long as he thought he was going to get his way.

"If this man ever walks the streets again, the first thing he will do is try to kill Americans," Cogan said. "He has one gear. That's to kill Americans."

"If this man ever walks the streets again, the first thing he will do is try to kill Americans."

— U.S. District Judge Brian M. Cogan

"There is not an ounce of remorse, not a smidgeon of self-doubt," the judge added.

He said he knew the life sentence would not end terrorism, but hoped it would work "best at the margins," where one potential terrorist might decide a life behind bars was not worth killing.

He also refused to recommend Harun serve his sentence at a particular facility.

The judge said the Federal Bureau of Prisons "is going to have its hands full with this violent and uncooperative defendant."

And though he said he suspected Harun was not listening to the court's video feed, Cogan instructed him that he could appeal.

The Associated Press contributed to this story.