Obama condemns attack on Jerusalem synagogue