A counterexample to the Liouville property of some nonlocal problems