(a) When, with respect to any petition for termination of parental rights filed under section 17a-112, section 45a-715 or section 45a-716, it appears that either parent of the child is a minor or incompetent, the court shall appoint a guardian ad litem for such parent. The guardian ad litem shall be an attorney-at-law authorized to practice law in Connecticut or any duly authorized officer of a child-placing agency if the child-placing agency is not the petitioner.

      (b) The guardian ad litem may be allowed reasonable compensation by the court appointing him which shall be assessed against the petitioner.

      (c) If the court finds the petitioner is unable to pay the compensation, the reasonable compensation shall be established by, and paid from funds appropriated to, the Judicial Department, however, in the case of a Probate Court matter, if funds have not been included in the budget of the Judicial Department for such compensation, such compensation shall be established by the Probate Court Administrator and paid from the Probate Court Administration Fund.