Stop using it
Turn it off and keep the door closed
Turn off the heat and keep the door closed until the fire is out. Keeping the door shut starves the fire of air. Don't throw water on it. If it doesn't go out, or it spreads, get everyone out and call 911. Once it is out, have the oven checked before you use it again.
It usually turns out to be one of these
- bake element (electric)
- broil element (electric)
- oven door gasket

