BEIRUT, Lebanon — Israel and Lebanon agreed on Wednesday to renew their fragile ceasefire and create a number of “pilot” security zones inside Lebanon from which Hezbollah terrorists would be banned.