A man killed eight relatives at a family home in the US state of Montana.