Rotary kiln with grate-type incinerator