Obama says Daesh's rise caught him by surprise