The Apple employee found dead at the company's California headquarters died of a self-inflicted gunshot to the head, police said on Thursday.