Obama says terror fight not enough to stop attacks