A man was hospitalized with a gunshot wound after a friend said he fired a pistol in a Wake County residential neighborhood and a bullet ricocheted.