Iran's military has vowed to take action against the perpetrators of Wednesday's double attacks in Tehran, which killed at least 13 people.