Just tell him that you're not interested in him. Or tell him dramatically that he's not your type ~ just kidding. So after you reject him, you need to act as nothing ever happened. So he will still be your friend.
Like
>>2 said you need to tell his ex that it was all a big misunderstanding.