An exterminator found a rotting corpse stuffed in the chimney of a Queens public school while investigating a foul odor, according to police.