A man suspected of shootings at a Grants Pass church and dentist office was arrested early Friday, authorities say.

The Grants Pass Department of Public Safety said 26-year-old Joshua Ashley was arrested in the shootings and booked into jail. He’s suspected of attempted murder and other charges, according to police.

No one was hurt in the first shooting, which occurred while a church service was underway Sunday morning at Parkway Christian Center, police said. Gunshots struck an upper window and a tree.

The gunshots were believed to have come from a vehicle that was driving by, police said. The Parkway Christian Center wrote on Facebook that the shooting appeared to have been an act of vandalism and was not targeted at an individual.

The second shooting unfolded Wednesday afternoon at Johnston Dental Care, where police said a gunshot went through an office window and grazed an elderly patient.

The patient refused medical treatment, according to police. The shot had come from a vehicle driving through the office’s driveway, police said.

Detectives “painstakingly pieced together both shootings through surveillance footage, automated license plate reader technology, and witness statements,” police said.

While serving a search warrant at the address where Ashley was arrested, detectives also seized a black Honda CRV believed to have been used in both shootings.

The address is on South Vannoy Creek Road northwest of Grants Pass.

Police didn’t detail a motive for the shootings in a news release early Friday.

-- Jim Ryan; jryan@oregonian.com; 503-221-8005; @Jimryan015

Visit subscription.oregonlive.com/newsletters to get Oregonian/OregonLive journalism delivered to your email inbox.