A military jury in Fort Bragg, North Carolina, sentenced a soldier to death on 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.