A stochastic model for the stepwise motion in actomyosin dynamics