The IRA attacked in countries that they felt were oppressing them. The UK, but if the British were still in control of Canada, they would have been here as well, like the Fenians. The Sikh terrorists that brought down the Air India flight were based in BC. They also put a bomb on a CP Air flight to Tokyo that was to be transferred to an Air India flight. Instead it blew up during the transfer at Narita Airport and killed 2 Japanese baggage handlers and injured four others. It could have just as easily blown up that CP Air 747 if the flight had been a couple of hours late.
On edit. The bomb that brought down Air India 182 was also sent to Toronto on a CP flight.
None of that changes the fact that the target of the Sikhs was India, not Canada.
There are terrorist groups active in several Central and South American countries that have nothing to do with Muslims. The ability of such groups to strike back against countries that interfere in their internal affairs is a quite recent thing made possible by modern technology.
There are terrorists in a lot of places, but they target their own country and people. Except, as far as I know, for Muslims.
Nineteen and early twentieth century colonial subjects in Africa, Asia and the Middle East didn't not have the capability to strike in the heart of European or North American capitals.
And yet now that they have it they don't do it. As for the nineteenth century, Muslims were busily attacking and sinking western ships, slaughtering people, and taking them as slaves to sell in North Africa. When they British taught them that was a bad idea to attack British ships they turned on American ships, demanding tribute from the US. The US paid this for a while but that didn't stop the piracy and so the US had to do what others do, build up a navy and send it over there to kick ass. No colonialism going on there. The Ottoman empire ruled over most of the middle east then. Not kindly either.