Iran's foreign ministry said on Friday that an upstream dam being built by neighbouring Afghanistan on the Harirud River restricts water flow and could be in violation of bilateral treaties.