Israel and Lebanon agreed to the 10-day ceasefire, but Israel vowed to keep its forces in southern Lebanon, saying it would attack if threatened by Hezbollah.