QCD calculation of the parity-violating NNπ amplitude in the Weinberg-Salam model and flavor-symmetry breaking