The authorities were also working to identify the victims, which a local official said included some foreigners. The funicular is popular with tourists.