Stability of solitary waves for a system of nonlinear Schrödinger equations with three wave interaction