If a dog or a person passes in front of a worshipper who has no Sutrah, the prayer is immediately broken and must be restarted.

The Sutrah and Rulings on Passing in Front of a Worshipper