Indonesian police say at least 22 people have been killed when a fire ripped through an office building in the capital.