he father has died; by the authorized agent of the department of social services or any agency licensed under chapter twenty-eight A provided that the child is in their custody; or, if the child is or was a recipient of any type of public assistance, by the IV-D agency as set forth in chapter 119A on behalf of the department of transitional assistance, the department of social services, the divisi