Poor tetra. I've seen this happen before. He should be fine if it doesn't get infected, just keep the water very clean and maybe add some melafix just in case. If it was caused by scrapping then that's your main concern.
If it was caused by an infection then you need to figure out what's causing that and treat it. Did his eye look bulgy at any point over the last few days? Any other signs of illness?