April 21: Sgt. Hasan Akbar, upper left, is led from the Staff Judge Advocate Building at Fort Bragg, N.C.

FORT BRAGG, N.C. — A military jury sentenced a soldier to death Thursday for a grenade and rifle attack on his own comrades during the opening days of the Iraq invasion, a barrage that killed two officers and that prosecutors said was driven by religious extremism.