Al-Qaida-linked militants attack IS affiliate in Libya