He was driving a car, when accident occurred.

He was driving a car, when accident occurred.

Explanation

Direct indirect after was use being.