Ankle fractures or sprains can cause scarring that may narrow the tunnel, resulting in tarsal tunnel syndrome.