Pairing of Cooper pairs in a Josephson junction network containing an impurity