Iran has expressed deep sorrow and concern over the deadly clashes between protesters and militiamen in the Libyan capital of Tripoli.