igniter won't stop clicking

We were turning the stove top off and it wouldn’t stop clicking. What can be the problem?:frowning: