On a stochastic delay difference equation with boundary conditions and its Markov property