Man beaten, robbed before apartment burglarized