Spain has accused Israel of violating international law and a newly brokered two-week ceasefire by carrying out airstrikes on Lebanon.