The event had been authorized by Moscow authorities, but detentions reportedly intensified as the rally was ending and participants shifted toward more directly anti-Kremlin slogans.