Approximation of integro-differential equations associated with piecewise deterministic process