"I know that it could have been worse," the Canadian city's police chief said.
"America should know that peace with Iran is the mother of all peace, and war with Iran is the mother of all wars," Rouhani said.
The gunman allegedly fired at police during a chase, then entered the store and took hostages. He later surrendered.
The pharmacist's actions did not reflect CVS's values or commitment to "inclusion, nondiscrimination and the delivery of outstanding patient care," the company said.
The Israeli military said it acted on a government directive to evacuate the civilians at the request of the United States and "additional" European countries.