Indonesia foils terror plot on tourist spots