The incident unfolded Friday afternoon on Denny Avenue, according to the Los Angeles Police Department. Officers responded after someone called and said their neighbor's home was being burglarized.
Surveillance video from inside the home captured two masked men in black walking up the stairs.
The neighbor tried to intervene, but the burglars sprayed them with bear spray and got away in a white Kia, police said.
It's unclear if anything was stolen from the home.