Spectrotemporal dynamics of a two-coupled-mode laser