Man had lost the home, custody of children in divorce, authorities say