A Moroccan court has sentenced to death two radical Islamists convicted of leading a terror cell .