If you are able to, dim the lights as low as possible and every few days make it brighter. Little by little. Maybe stay outside the tank when the light is on and off, showing him that there is nothing to fear and that you're still there. Are there any other tank mates?