Nonlinear dynamics of an ordinary electromagnetic mode in a pair plasma