An elephant in southern China has taken out his frustration on a row of cars after losing out on a female mate to a love rival.