A Two-Sided Exit Problem for a Difference of a Compound Poisson Process and a Compound Renewal Process with a Discrete Phase Space