Universal behavior of a bipartite fidelity at quantum criticality