The summer of 1989, when soldiers shot and killed hundreds and possibly thousands of demonstrators in Beijing’s historic Tiananmen Square, helped shape China into the security state it is today.