Green's function and invariant density for an integro-differential operator of second order