Destructive distillation of solid carbonaceous material with indirect heating