A coalition led by a Western-educated political scientist appeared on Sunday to be beating its Islamist rivals in Libya’s first