At least 12 people are dead in bomb and gun attacks in the Iranian capital Tehran, according to state media.