Ukrainian men wanting to escape the war were caught at the border with Romania