Pattern Formation as a Transient Phenomenon in the Nonlinear Dynamics of a Multi-Agent System