Density functional theory for a confined Fermi system with short-range interaction