Wanted New Hampshire sex offender caught in NY Mills