An Indonesian foreign ministry spokesman says senior officials from both countries reached the preliminary agreement last week .