Fragmentation contribution to the transverse single-spin asymmetry in proton-proton collisions