There are a many possible causes of blood in vomit, intestinal parasites, ulcers, respiratory tract infections, the ingestion of toxics or poisons, heartworm disease, bleeding disorders or foreign bodies into the intestinal tract, along with other causes.

If this persists I would definitly get him to the vet.