1. Create a lightbulb brush.
2. Turn it into a func_breakable.
target on break: light_off
Other setting are up to you
Create a light_spot entity, and place inside your lightbulb brush.
Name it: light_off.
Compile your map and test it. When you destroy the lightbulb, the light goed out.