Hi. Welcome to justanswer.
This means that the adapter you are using has become faulty as it is showing the green light when there is no load. But as soon as you connect it to the device, it turns off as it is unable to take the load. You will need to replace the power cord of the printer and you will be good to go
If you have any query then do let me know.
There could have been two possible reasons. One that I have stated earlier and other that there could be some short circuit in the printer. But as you said that you hear a clicking sound then it eliminates the second one.
If that is the case then repair would be required
Do you have any other query?
Would you like to rate my services positively?