Barak says Israel never ruled out attacking Iran