I am also trying to solve exercise 6.4 from "Kirillov: An Introduction to Lie Groups and Lie Algebras", just like here: Root decomposition implies semisimple, but another version.
Let $\mathfrak{g}$ be a complex Lie algebra which has a root decomposition \begin{align} \mathfrak{g} = \mathfrak{h} \oplus \bigoplus_{\alpha \in R} \mathfrak{g}_\alpha \end{align} where $R$ is a finite subset in $\mathfrak{h}^* \setminus \{ 0 \}$, $\mathfrak{h}$ is commutative and for $h \in \mathfrak{h}$, $x \in \mathfrak{g}_\alpha$, we have $[h,x]=\langle h,\alpha \rangle x$.
And for every $\alpha\in R\cup\{0\}$, the Killing form give a non-degenerate pairing $\mathfrak{g}_{\alpha}\otimes \mathfrak{g}_{-\alpha}\rightarrow \mathbb{C}$.
Show that then $\mathfrak{g}$ is semisimple, and $\mathfrak{h}$ is a Cartan subalgebra.
The way we want to show $\mathfrak{g}$ is semisimple is to show it has the non-degenerate Killing form. To show this, assume $\kappa$ is degenerate, that is, there exists some $h\in\mathfrak{h}$ and $x_{\alpha}\in \mathfrak{g}_{\alpha}$ such that $$\kappa\left(h+\sum_{\alpha} (x_{\alpha}+x_{-\alpha}),y\right)=0$$ for every $y\in\mathfrak{g}$.
What should I do next to get contradiction? I think it does not work if we take $y=x_{\alpha}$ since we just have $\kappa$ is non-degenerate on $\mathfrak{g}_{\alpha}\otimes \mathfrak{g}_{-\alpha}$.