Find the binomial expansion of \(( 3 + k x ) ^ { 3 }\), simplifying the terms.
It is given that, in the expansion of \(( 3 + k x ) ^ { 3 }\), the coefficient of \(x ^ { 2 }\) is equal to the constant term. Find the possible values of \(k\), giving your answers in an exact form.