I have read about $k$-spaces is Topology and Groupoids by Ronald Brown, where they are defined as spaces where a subset is closed if its preimage $f^{-1}(A)$ is closed for each continuous map $f$ from a compact Hausdorff space $K$ into $X$. I'm used to the notion of a compactly generated space as a space where a subset is closed if its intersection with each compact subset is closed. Some authors require the space to be Hausdorff, while May only requires it to be weak Hausdorff. Note that a $k$-space is always compactly generated, while for Hausdorff spaces both properties agree.
Whatever definition is used, it is not that difficult to find a space which is not compactly generated (and hence not a $k$-space), if you keep in mind that in a $T_1$ space the intersection with each compact set is automatically closed if every compact set is finite (A space where every compact set is finite is called anti-compact). So we just have to find an anti-compact $T_1$ space which is not discrete. There exists such a space, namely the space $X=(\mathbb R,\tau_{cc})$, the real line with the cocountable topology . It's easy to check that no infinite subset of $X$ is compact. But since this space is not discrete, it is not compactly generated.
I don't have an example of a Hausdorff space, though. But when you try to find such a space, keep in mind that the following spaces are always $k$-spaces:
- spaces where each point has a compact Hausdorff neighborhood
- sequential spaces
- quotients of a topological sum of compact Hausdorff spaces
Edit: An example of a Hausdorff space which is not compactly generated is now presented in my answer to Spaces in which "$A \cap K$ is closed for all compact $K$" implies "$A$ is closed."