Man shot during robbery attempt