President Rouhani stated, "We agreed to increase the security cooperation of the two countries, our border forces, our intelligence forces".
Pakistan lodged a strong protest with Iran over the country's "inaction" against the group behind the attack, according to The Express Tribune.
Last week, at least 14 Pakistani security forces personnel were killed in a bus ambush that the Pakistani government blamed on Iran-based armed groups.
On the development of transit railway between Iran and Pakistan, President Rouhani said, "Iran, Pakistan and Turkey are among the founders of Economic Cooperation Organization (ECO), within the framework of which we can establish a transit line between the East and the West".
Reflecting an apparent improvement in relations, Rouhani also announced a series of proposals to improve trade, saying that "no third country" could harm Iran-Pakistan ties, in an apparent reference to the United States, a close ally of Pakistan.
Khan later met Iranian Supreme Leader Ayatollah Ali Khamenei, who said "enemies" backed unrest in border areas.
Imran Khan says in the video: "On the border region of Germany and Japan, they had joint industries".
Islamabad blamed the attack on the insurgency group Baloch Raaji Aajoi Sangar (BRAS) and said militants were operating from Iran, accusing Tehran of "inaction" against terrorists.
As regards the plans for growing economic relations, the president said Iran is prepared to fulfill Pakistan's demands for oil and gas.
"It is costly and Pakistan has tight economy but considering its importance we have made a decision to fence it", Pakistan's Foreign Minister Shah Mehmood Qureshi said on Saturday. He said it is time that both Pakistan and Iran work out ways and means to enhance their bilateral trade to exploit the existing potential.
In retaliation, Iran has deemed U.S. Central Command (CENTCOM) - charged with overseeing American military activities in the Middle East - a terrorist group.
He said cooperation between Chabahar port in southeast Iran and Pakistan's Gwadar port can be increased, and that Tehran could facilitate the construction of a railroad connecting Istanbul to Islamabad.
Earlier in the day, Rouhani extended a formal welcome to Khan, whose historic visit to Tehran has been viewed as a major step towards opening a new era in relations between the two neighbors.
- Giuliani To Romney: ‘Stop This Pious Act’
- Talent Not an Issue for England's New Manager
- Can Atleti snatch La Liga's title away from Barca?
- The Trump-Adjusted Supreme Court Appears Ready to Uphold 2020 Citizenship Question
- Muslims had warned officials about group behind Sri Lanka attacks
- Tesla gears up for fully self-driving cars amid skepticism
- Smart money points to Trump charge
- New Cyber Security Study Says To Stop Using Blink182 As Your Password
- Donald Trump in Queen blunder as he announces United Kingdom state visit
- Best ways to make your website stand out from the rest