I would definitely look up your legal rights here, because I feel like its not legal to kick someone out for a reason like this, ESPECIAlLlY if the homeless person in question wasn't living there.
But I'm sorry that you are having to deal with this. It sounds like you were being nice to someone who truly needed it at the time. Being a good person shouldn't make you have to worry about being evicted