Dynamic crystallization in a quantum Ising chain