CANYON COUNTRY (CBSLA.com) — A man was fatally shot by a resident after he allegedly tried to break into his apartment in Canyon Country, and the renter was being detained while the investigation proceeded, a sheriff’s deputy said Saturday.

The shooting took place about 9:10 p.m. Friday, in the 26700 block of Isabella Parkway, Deputy Lisa Jansen said.

The renter who shot the alleged intruder called the sheriff’s department to report the shooting, Jansen said.

The resident and other witnesses told sheriff’s personnel the man who was shot was trying to get into the apartment.

The renter reportedly told the man to leave numerous times and that he didn’t live there, but the shooting victim apparently ignored the warnings, according to Jansen. When the suspect allegedly broke out a window and started to climb inside the apartment the resident shot him multiple times.

The victim was taken to a hospital where he died, Jansen said. His name was withheld pending notification of next of kin.

The renter was being detained at the Santa Clarita sheriff’s station pending the conclusion of the investigation, Jansen added. The renter’s handgun was taken into evidence.

It’s unknown why the deceased man tried to get into the apartment.

CBS2’s Jeff Nguyen spoke to neighbors who heard the gunshots Friday night.

“It was probably five or six shots like dah, dah, dah, dah, and then it stopped. And then from there I kind went outside and uh, what’s going on?” said Michael Ramirez.

“I was a little scared. I didn’t think it was actual gunshots. I just thought it was fireworks so I was a little confused,” said Mary Chacon.

Anyone with information on the shooting was asked to call the Sheriff’s Homicide Bureau at (323) 890-5500. Tipsters can also call Crime Stoppers at (800) 222-8477. All tips can be made anonymously.

(©2016 CBS Local Media, a division of CBS Radio Inc. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. Wire services contributed to this report.)