Iranian naval forces intervened to repel pirates who attacked an Iranian oil tanker in the Gulf of Aden, state television reported on Friday.