A 26-year-old man was arrested on assault and weapons charges after police said he accidentally shot his girlfriend in the leg while showing her an assault rifle at his home in Baywood late Wednesday.

The victim, identified only as a 20-year-old female, was transported to Southside Hospital in Bay Shore for treatment of a non-life-threatening leg injury, Suffolk County police said.

advertisement | advertise on newsday

Police said her boyfriend, Ryan Becker, of 63 West Oakdale St., Baywood, was arrested early Thursday and charged with second-degree assault and two counts of third-degree criminal possession of a weapon. He faces arraignment Thursday in First District Court in Central Islip.

Police said Becker was showing his girlfriend the rifle "when it fired," striking her.

The incident occurred in his home at 11:32 p.m., police said.

It was not immediately clear what type of rifle was involved. The condition of the victim also was not known Thursday.