Any vacancy in the office of a justice of the peace selected (1) pursuant to § 9-183b or (2) pursuant to § 9-183c shall be filled by appointment by the town committee of the political party of the vacating justice until the day on which the term of office of such vacating justice would have terminated. The town chairman or the secretary of the appointing town committee shall file with the town clerk a certificate of each such appointment and the town clerk shall record the certificate with the records of the town meeting. The town clerk shall notify the Secretary of the State of any such vacancy.