Finite time singularities in a 1D model of the quasi-geostrophic equation