An armed member of the Canadian military drove a truck through gates protecting an exclusive part of Ottawa where Prime Minister Justin Trudeau lives on Thursday but was quickly arrested, police said.