Dissipation-induced hard-core boson gas in an optical lattice