You should first recognize that statements not intended to be offensive may still be perceived as such. An effective way to handle this situation is to apologize to the person for the remark and to exercise greater caution in the future.
[EN] I recently made a joke about a colleague that I thought was very funny. I learned later that my colleague felt offended. What should I do?