When the party accused shall reside out of the county in which such indictment was found, it shall be lawful to issue a warrant thereon, directed to the sheriff of the county where the accused shall reside or may be found. It shall be the duty of such officer to arrest the accused and convey him to the county from which such writ was issued, and there commit him to the jail of such county, or hold him to bail, as provided in section 29-1701.