The linear quadratic stochastic optimal control problem with random horizon at finite number of events independent of states system