Man shot in the back during attempted robbery