US president says Washington is closely monitoring protests in Iran and considering possible military intervention.