Discuss as:

Boy in Washington school shooting: 'I'm sorry'

PORT ORCHARD, Wash. – A 9-year-old boy who took a gun to school that accidentally discharged and seriously wounded a classmate was sentenced Tuesday to 12 months of probation and ordered to write a letter of apology to the victim.

The boy admitted to unlawful possession of a firearm in the second degree, reckless endangerment and possession of a firearm or other dangerous weapon on school facilities. An assault charge was dropped, and in return, the boy agreed to testify against his mother and her boyfriend.

At a Kitsap County Juvenile Court hearing, the boy was asked whether he wanted to say anything. He said simply, "I'm sorry."

The boy's classmate, 8-year-old Amina Kocer-Bowman, remains in serious condition at a Seattle hospital after she was struck Feb. 22 in her abdomen and arm.

The boy was also ordered to undergo 48 hours of counseling. He is to have no contact with his mother, Jamie Lee Passmore, 34, or her boyfriend, Douglas Bauer, 50, and must be home-schooled.

The boy accidently shot Amina Kocer-Bowman when a loaded gun in his backpack discharged at Armin Jahr Elementary school on Feb. 22.

The boy got the .45-caliber semiautomatic handgun from the glove box of his mother’s vehicle during a weekend visit, according to police. Authorities said Monday that the handgun was owned by Bauer, according to The Kitsap Sun.

Bremerton police Lt. Peter Fisher said the warrant for Passmore lists two second-degree counts of unlawful possession of a firearm. Bauer, is wanted for a second-degree count of unlawful possession of a firearm.

Kocer-Bowman, who was hit in the abdomen, remains in serious condition at Harborview Medical Center. She has undergone at least five surgeries.

KING5.com and The Associated Press contributed to this report.

More content from msnbc.com and NBC News