Optimality Conditions for Distributed Control Problems with Nonlinear State Equation