That is odd. It looks like a cut, but the placement is so perfect that it seems unlikely it would be, even if there was something sharp.
I would say the best move is to just keep the water as clean as you can and hope the fish heals itself. I don't know where it came from. It could have been some weird, freak occurrence with the filter intake or another fish I suppose.