A man who shot and killed another man during a home invasion robbery in Montgomery County was justified, officials said Monday.

It happened around 1:30 a.m. July 28 in the 1100 block of Willow Street in Norristown.

Daryl Marquis Evans, 22, was shot and killed by a resident inside the home during the robbery, officials said.

The district attorney said a thorough investigation revealed the 29-year-old resident was justified in killing Evans.

"The resident acted reasonably and with proper justification when he lawfully stood his ground in his home and used deadly force against Daryl Marquis Evans during his invasion of the residence," said Montgomery County District Attorney Risa Ferman.

"The laws of our Commonwealth provide that citizens of our community may stand their ground and defend themselves inside their homes. Faced with an armed intruder who illegally entered his home, the resident was justified in using deadly force to protect himself," she added.