Libya’s central government is struggling to control armed groups, militias and brigades of former rebels who helped oust longtime leader Muammar Gaddafi in 2011 and refuse to disarm.