Here is another spectral sequence argument. It is mainly of interest because it is different, but I think that it is slightly easier and will detail how. The spectral sequence is used by Deligne in the paper cited in the comments by Guest, but only for the simply connected case. The advantage is that André's argument required knowing that $H^4(K(\pi,2);\mathbb Z)$ is torsion-free, while this argument does not. Also, it does not seem to require knowing that $\pi_2$ of a Lie group vanishes or that $\pi_3$ is torsion-free. Indeed, it appears to prove those facts, but they are probably closely related to the required input. What it does require knowing is that $K/T$, the quotient of a compact group by its maximal torus, has cohomology that is torsion-free and concentrated in even degrees. This is usually shown by the Schubert (or Bruhat) decomposition into even dimensional cells. The spectral sequence is the Serre spectral sequence for the fiber sequence $K/T\to BT\to BK$, namely $H^*(BK; H^*(K/T))\Rightarrow H^*(BT)$. Since $BK$ is simply connected, the cohomology is untwisted; and since the coefficients are torsion-free (another advantage over the other spectral sequence), the $E_2$ becomes a tensor product: $H^*(BK)\otimes H^*(K/T)\Rightarrow H^*(BT)$ and takes this form: $$\begin{matrix} \vdots\\ * & \vdots \\ 0 & 0 \\ * & 0 & * \\ 0 & 0 & 0 & 0 \\ \mathbb Z & 0 & * & * & H^4(BK) & \cdots \\ \end{matrix}$$
There is no room for a differential to come from or hit $H^4(BK)$, so it injects into $H^4(BT)$, which is torsion-free. Injecting into a torsion-free group is slightly nicer than in the other spectral sequence, where it is an extension of two torsion-free groups. In the simply connected case, $H^4(BK)=H^4(BT)^W$, but that is not true in general (cf the spin characteristic class $\frac{p_1}2$). and that's also be true in the non-simply connected case (cf comments below).