Creating Objects Through Raycast

Hi, I am trying to create a Empty GameObject though raycast. I can create the raycast but I want to create an object where the raycast hits another object, How could I do this? I have everything else done except for this part.

Thanks for your help.