Obama says underestimated Islamic State