A United Nations war crimes court has sentenced a former Rwandan mayor to 15 years in prison for his role in the 1994 genocide .