A Pizzetti-type formula for the heat operator