Obama says violence will not end immediately in Syria