Kitchen-aide gas oven shuts off after 10 seconds

Oven cuts off after 10 seconds and wont cut back on. The flames while on are strong and steady. I hear a click in the back of the stove as it cuts Off. Stove top burners all work fine.