Of course the first sentence is correct, but my point was to the incomplete 2nd sentence.
Why do you CUT my sentence? This is NOT my sentence: Several thousand people had been killed by the earthquake in China.
Also, your latest sentence should be: When the earthquake struck China, several...