What is needed here is pragmatism. The individual who feels he is having same-sex attractions is confused, to say the least. The OP is likely confused as well, otherwise she would not be asking for advice here. To counsel that the OP should continue to have close associations with this friend of hers is therefore unwise in the extreme.
My advice for the OP is to preserve her own fragile faith and avoid those who, through imprudent association, could lead her into error. This individual’s experience of same-sex attraction provides him no special right to her friendship and, in the presence of a mutual confusion that could metastasize into something far more serious, it is better for both that he not have it.