President Emmanuel Macron says a French soldier has been killed and three others injured during an attack on UN peacekeepers in southern Lebanon.