WD40 will also work but as you will more than likely have the same problem again why not get some proper tar remover?
Autoglym's Intensive Tar according to their blurb, dissolves tar, oil, grease, silicone, wax, gum, tree sap, fuel stains and adhesive residues from paintwork and plastics and...