Observations and analysis of circumstellar cyanoacetylene