NAIROBI, Kenya — A Sudanese court on Monday sentenced to death 29 members of the national intelligence service for the torture and killing of a teacher, the latest in a series of convictions and investigations this month targeting the government of the deposed president, Omar Hassan al-Bashir.

The court sentenced the men in the killing of Ahmed al-Kheir, a teacher who died in custody in February during mass protests against Mr. al-Bashir’s rule. Mr. al-Kheir, 36, was arrested in January from his home in Khashm el-Girba, in the eastern state of Kassala, on allegations that he had helped to organize the protests, according to news reports.

Following his death, family members told Reuters that Mr. al-Kheir’s body had bruises showing that he was beaten while in detention.

Dozens of security officers filled the court on Monday as the judge read the charges against the accused, who were seated in a dock surrounded by metal bars. As the ruling proceeded, some of the defendants repeatedly yelled, “Monsters!”