A 16-year-old armed with an Airsoft rifle was taken into custody Thursday afternoon after he shot a 12-year-old in the back while he was walking on lower Black Rock Turnpike with a friend, police said.

He was charged with second-degree assault, second-degree reckless endangerment, risk of injury to a minor and breach of peace.

The 12-year-old victim suffered a welt on his back, but his parents refused medical attention for the boy. The shooter was allegedly spotted by the victim firing the rifle from the second-floor window of a Black Rock Turnpike home, near Castle Avenue.

Officers were dispatched to the 16-year-old's home within minutes. The teen -- whose identity was not disclosed because of his age -- and the gun were brought to Police Department headquarters, where he was charged.

"We're not taking this lightly because it was a BB gun," said Lt. Jim Perez, a Fairfield police spokesman. "It can cause just as much injury as a real gun, depending on proximity and angle and where it hits."

The attack on the 12-year-old comes less than a day after a motorist's car was targeted by a BB gun shooter as she drove by the intersection of Black Rock Turnpike and Kings Highway East. One of the pellets entered the vehicle's cab because a window was partially open.

Police said Thursday it is not known if the 16-year-old who shot the other boy may be involved in the Wednesday incident, but they are investigating a possible link.

Perez said the shooting of the 12-year-old was a senseless act. "This behavior is completely unacceptable," he said. "What's next? The reality is this is a very dangerous act and we're happy to bring an end to this."

He added, "Let this serve as a warning to others that we will vigorously pursue an arrest with all of our available resources of anybody who tries to commit a similar act. This [shooting of people taking a walk] is a direct threat against society."