The plane crashed into a 10-storey building in Tehran as it was trying to make an emergency landing in foggy conditions.