Elections turn violent in Andhra Pradesh