Man beaten, robbed outside CVS