Henry Sousa, 58, of 8 Dana St., Cambridge, was arrested and charged with resisting arrest and assault and battery with a dangerous weapon.
Police were called to the AJ Wright on Somerville Avenue after Sousa allegedly loitered there for hours and refused to leave. Sousa allegedly picked up a bicycle lock and struck a loss prevention officer in her hand, police said.
He immediately fought with responding officers while shouting profanities, police said. After a brief struggle, he was handcuffed.