A Lebanese soldier was killed and two others were injured on Tuesday after gunmen opened fire on the army’s barracks in al-Beddawi near the northern city of Tripoli.
The dead soldier was identified as Mohammed Hussein.
The two wounded troops were taken to al-Qobbe hospital in Tripoli.
The attack most likely came in retaliation to the army’s clampdown on terrorists on the outskirts of the northeastern border town of Arsal.
The Sunni militants from al-Nusra Front and the Islamic State group have taken soldiers and policemen as hostage and have killed three of them.
The spillover from the Syrian war has raised sectarian tensions in Lebanon, where Sunnis and Shiites back opposing sides of the neighboring conflict.
The militants have been trying to punish the Iranian-backed Shiite Hizbullah because its fighters are battling alongside forces loyal to Syrian President Bashar Assad.
They have claimed responsibility for bombings in Lebanon that have targeted Shiite communities. But they have also increasingly targeted the Lebanese army itself, seeing it as aligned with Hizbullah fighters.
Some Lebanese Sunnis complain that the army is biased, because it has only cracked down on Sunni militants heading to Syria, and not on Hizbullah fighters.