Three people were killed and an unknown number of people trapped after a building collapsed in Taiyuan, Shanxi province yesterday.