I cut my face while shaving.

Literal

Beard [object-を] shaving [while-ている] [when-とき] face [object-を] cut.

髭をそっているとき — そる means 'to shave.' ているとき marks 'while I was shaving.' 顔を切った means 'cut my face.' A common daily mishap.