The only safe thing to try before sending the camera for service is to use canned compressed air to blow out the area between the lens barrel and camera body since even a small amount of sand or grit can cause this problem.Next, I would contact Nikon support directly by phone, (if it is still covered under the one year warranty) or even if the camera is slightly past the warranty period. I am sure that exceptions have been made, in some cases.
if you have no luck with Support, then please continue belowLens errors are a common problem. It may be misaligned or an internal component has failed. If there is a clicking sound, that is not a good sign. It is too soon for the battery to fail and cause this to happen due to lack of power. Try canned compressed air around the lens barrel first. In addition, here are a couple of links to some other things to try. With newer cameras I am usually hesitant to suggest these options since they include some more extreme procedures that may cause further damage if not done correctly, but if yours is probably no longer under warranty, they may save you an expensive repair bill. An older Canon camera is used to demonstrate these procedures but, the lens structure of these compact cameras is the same so the examples do apply to this unit. These procedures are effective about 60% of the time. Click on or copy and paste the links into your browser.
If the do it yourself approach does not work out for you and you need conventional repair suggestions please let me know.
Considering the age and present value of this camera, paying the cost of having it repaired , approximately $95 - $110 really depends on how attached to the camera you are. The standard rule of thumb, is if the repair cost is greater than 50% of the value of the camera, it is not worth it. A used or refurbished Nikon coolpix S6500 can be purchased for about $55-$75. New ones for around $9 at the link below.
Please keep in mind that my diagnosis & solutions provided are directly dependent on the accuracy of your description of the problem. As with any do it yourself fixes, success is a team effort, since I cannot see or touch the camera, and relies on the customer's manual dexterity and ability to follow the instructions well. If you require additional information, please use the Reply to Expert Tab to contact me. Click the ratings only after our exchange is complete and you are satisfied.
If you are satisfied that my answer is accurate or has provided a reasonable alternative solution, please do not forget to rate my answer OK, Good or Excellent.