A UN-backed report published in March also said that famine is imminent and likely to occur by May in northern Gaza
Two security sources told Reuters the police and army had encircled the gunman in a building after he threw a bomb at security forces in a government building and fired at a patrol.
One of the sources said that the attacker then blew himself up and that he had been in jail before on charges of belonging to Islamic State.
The Lebanese military confirmed the attack and the death of a soldier, and said the attacker had also fired at the security forces’ centre.
Lebanese authorities say they have foiled numerous attacks in recent years, including some tied to the conflict across the border in Syria. From 2013 to 2016, militants struck parts of Lebanon repeatedly with bomb attacks, but officials have since said that security has improved.