A crane at the Grand Mosque collapsed, also injuring more than 150 people, as the city prepares for millions of worshipers to make the annual pilgrimage to the Saudi Arabian city.