PORTLAND, Maine — Maine police say tear gas was used to end a standoff with a man accused of shooting a woman in the chest from his Portland apartment.

Police Lt. Gary Rogers says the suspect surrendered Saturday night. Brian Kelley was charged with elevated aggravated assault, reckless conduct with a dangerous weapon and creating a police standoff.

The 48-year-old Kelley was in custody and wasn’t immediately available for comment.

Police say the woman was walking down a street Saturday morning when the suspect shot her. She suffered injuries that were not life-threatening. At first, police thought she was shot with a rifle, but it was determined that the gun fired pellets, not bullets.

The shooting took place while 200 students took their SATs at nearby Portland High School, which was briefly put on lockdown.