Armed men have opened fire at the Iranian parliament and the shrine of Ayatollah Khomeini in the Iranian capital of Tehran.