MYRTLE POINT, Ore. -- A Myrtle Point teen was justified in the police say tried to burglarize his home, Coos County District Attorney said.

It happened Wednesday on Spruce Street in Myrtle Point.

Police received a report that a burglar had entered the teen's home.

The DA’s office says the resident--a 15-year-old boy--feared for his safety.

They say the teen grabbed a shotgun and shot the suspect in the leg.

Under Oregon law, if someone commits a burglary in your home and you fear for your life, you can use deadly physical force.

"That's clearly what happened here,” Coos County District Attorney Rob Frasier said. “This guy was committing a burglary and the young man in question was obviously scared about what was going on and so, no question in my mind that this was justifiable."

Police identified the suspect as 33-year-old Kenneth John Edwards.

He was taken to the hospital for non-life threatening injuries.

There’s no word yet on the charges he's facing.