How do you attach the brake light switch? on 2006 Honda Civic

I have removed the old switch and have attached the housing to the pedal, but the switch part just slides out of the housing. How does the switch attach to the housing?

Asked by for the 2006 Honda Civic