Thousands of people have been forced to flee parts of Lebanon that have come under heavy attack by the Israeli military.