It is demonstrated that Smale-horseshoe chaos exists in the time evolution of the one-dimensional Bose-Einstein condensate driven by time-periodic harmonic or inverted-harmonic potential.A formally exact solution of the timedependent Gross-Pitaevskii equation is constructed,which describes the matter shock waves with chaotic or periodic amplitudes and phases.