10 people rescued from building