A former Canadian military reservist has been sentenced to house arrest after posting a video of himself firing a shotgun at a picture of a member of Parliament whom he accused of being a "communist agent" for China.