Saudi Arabia’s diplomatic rupture with Canada risks complicating the kingdom’s efforts to woo foreign investors as it seeks to overhaul its economy.

Saudi Arabia on Monday declared Canada’s ambassador persona non grata, and gave him 24 hours to leave the country. The decision to expel the Canadian ambassador, Dennis Horak, came after Canada’s Foreign Ministry criticized Saudi Arabia for arresting human-rights activists.

In...