A model for nonlinear seismic waves in a medium with instability