A 30-year-old Indian techie was shot by the police in California after he allegedly stabbed his roommate with a knife earlier this month, officials said, even as his family alleged racial discrimination and demanded a thorough probe into the circumstances leading to his death.