Pressure-induced semiconductor-to-metal phase transition of a charge-ordered indium halide perovskite