The qualified electors of each circuit shall elect a prosecuting attorney, who shall hold his office for the term of two years, and he shall be a citizen of the United States, learned in the law, and a resident of the circuit for which he may be elected.