I wouldn't say that he hacks. I bet that it was slight lag or some tf2 glitch. To me it seems possible only if he's a skilled player. It makes sense that he popped out, took quick aim, and shot. Also consider it from his position. The ground in front of him sloped upward, so his FOV was limited. It was easier to find you.