It could be caused by tomato hornworms, ants or beetles. It also could be a fungal infection from over watering. Something with bacillius thuringiensis in it will get rid of worms or insects. Neem oil based peticides work for insects. Spraying tomato plants with water may work for hornworms. They will start wiggling and you can pick them off.