A Libyan crackdown on lawless militias spread to the capital on Sunday after armed groups that have not been integrated into state institutions were ordered to disband and evacuate their bases.