Man walks 5 blocks for help after shooting