On Friday night, family members called 911 and said the man, identified as 27-year-old Nicolas Segura, was threatening to stab them at the home on West Adams Street, according to the San Bernardino Police Department.
Multiple people at the home locked themselves in bedrooms while waiting for police to arrive.
When police arrived at the home they found Segura in the driveway still armed with the knife, but he refused to comply with commands from officers.
Police say Segura then "charged" at the officers with the knife and the shooting occurred.
Segura was taken to a hospital where he later died.