Please note that I am not a vet, but it looks like a cut got infected. If it is hard to the touch it is most likely a tumor. If it is soft it is most likely an infection.