Immigration officer asks for a Tip

So recently while leaving from Agadir Airport, the immigration officer told me how much he liked my name. Started a conversation. Then in the end asked myself to give him a tip (bakhshish). I did feel like giving but only had a few dirhams so didn’t want to embarrass myself or the officer. The officer didn’t seem to like it which I could see, didn’t even bother replying to a nice Goodbye after stamping the exit. How does one handle such situation(s)