I had a similar situation on my first playthrough. I hid between the shelves in the far corner and waited for him to leave, but he kept standing there.
But if you look away long enough, he'll be gone.
Illusion or not, I still wouldn't go towards that thing.