Security restored in Tripoli after armed clashes, Libyan prime minister says