US President Barack Obama says he is “deeply troubled” by violence in Iran following last week’s disputed presidential elections.