Fire causes $40,000 in damage at complex