Can I take a loss on rental apartment we own when the builder caused damage through mistakes and would not repair?

Built apartment for father-in-law 5 years ago. Recently found mold and discovered contractor failed to put waterproofing behind shower tile. Spent over $15,000 to remediate mold and rebuild bathroom. Contractor refuses to pay anything. How do I handle this?