Head of rival govt in Libya capital sacked