The Turkish government pulled out of a five-week NATO military exercise in Canada to protest a statement by Prime Minister Stephen Harper last month in which he called the killing of Armenians in World War I a genocide .