The alleged assault happened at the State Police barracks in Oak Bluffs after the 27-year-old Boston man went out drinking with friends, authorities said.