Montana man pleads no contest to neighbor's shooting death