A 12-year-old boy was arrested Tuesday in the July 5 attempted shooting of a Baton Rouge police officer, a police spokesman said in a news release.

The boy was booked into the East Baton Rouge Parish Juvenile Detention Center on one count each of attempted first-degree murder of a police officer and burglary of an inhabited dwelling, Sgt. Don Stone said in the release.

The boy is one of three juveniles and one adult arrested in the attempted shooting. The other juveniles are 14 and 15 years old.

The 15-year-old fired at least two shots at a 31-year-old police officer when the officer pulled up to the scene of an attempted break-in at 860 W. McKinley St., Stone said.

One of the bullets pierced the front windshield of the officer’s patrol unit and hit the dashboard in front of where the officer was sitting, missing his chest by an inch, Stone said.

The attempted shooting occurred just before 5 a.m. July 5, Stone said.

Earlier that morning, Abraham Washington, 25, and the juveniles burglarized a home at 706 Van Buren St., Stone said.

Among other things, Washington and the juveniles stole the homeowner’s car and backed it out of the garage without opening the garage door, damaging both the door and the car, Stone said.

Washington and the older juveniles were arrested last week and booked on the same counts as the 12-year-old.