At least two dozen people died and 13 others were injured after a bus plunged into a ravine in Indonesia, police say.