We study the stochastic model for bioremediation in a bioreactor with ideal mixing. The dynamics of the examined system is described by stochastic differential equations. We consider an optimal control problem with quadratic costs functional for the linearized model of a well-stirred bioreactor. The optimal control is based on the optimal robust state estimates. The approximate optimal solution is obtained as a linear feedback.