Does anyone know of the earliest known record of a story involving some sort of artificial creature, brought into existence by humans, that, at some point, becomes violent and attacks its creators or other humans against its creators' will?
One of the first things that come to mind is Frankenstein, but I believe other stories, for example, the Golem, would also fit this description.
Does anyone know of any that are from earlier than that?