Dynamical Phase Transition in a Neural Network Model with Noise: An Exact Solution