An Iraqi court sentenced two men, a French citizen and a Tunisian, to death on Wednesday after finding them guilty of joining Islamic State, a prosecutor told Reuters.