How to make this icon in Illustrator/Photoshop or any other software for that matter?
The gradient is a simple angle gradient. It is the third option on gradient tools on photoshop, however to get it spot on, you may have to tweak the color stops, rather than just using a standard two point gradient.
Here is a quick comparison using the above method. As you can see, it's almost exactly the same: