Home builder KB Home reported Tuesday a profit for the second quarter that more than halved from last year, despite housing revenue growth, reflecting lower housing gross margins and higher expenses. However, both earnings per share and quarterly revenues topped analysts’ expectations.