Chemical evolution of a nitrogenase model. III. Reduction of nitrogen to ammonia