Josh had an accident and spilled water all over his work.
She was injured in a car/road accident.
I had an accident two weeks ago and now I can't do sport. (Key English Test; A2; French)
I deleted the file by accident.
I was dancing and someone [kicked me] by accident and my glasses fell [off]. (Preliminary English Test; B1; Spanish)