It's a fungal disease called early blight. Apply a general-purpose fungicide that is labeled for tomatoes. Spray at first evidence of the disease.