KB Home narrows loss for 2010