I won a camera in a lottery.

Literal

Lottery [means-で] camera [subject-が] hit.

福引き means 'lottery/raffle.' カメラが当たった — 当たる means 'to hit/win.' で marks the means or context. A simple lucky-event sentence.