despite a polish victory at the battle of szack , after which the soviets executed all the officers and ncos they had captured , the red army reached the line of rivers narew , western bug , vistula and san by 22 september in many cases meeting german units advancing from the other direction .