A man was wounded Sunday night in Prince William County in an exchange of gunfire with police, according to county Police Chief Barry Barnard.

Police were called to a house on Laurel Street in the Woodbridge area to investigate a call about gunshots, police said in a statement. As officers arrived, someone began firing at them with a rifle in what the chief described as an ambush, the statement said. A police cruiser was hit “multiple times,” the statement said.

Two officers returned fire. The suspect was hit in the upper body and then detained. He was flown to a hospital with serious injuries, the police said. He was not named, but police said he was 29 and reportedly lived in the house from which the call came.

In another incident in Prince William on Sunday night, two people were found in a car suffering from what police described as “apparent gunshot wounds.” Both died at the scene, police said.

The two were found on Brandy Moor Loop in the Woodbridge area, according to police. The two, described only as male, were in a car that had driven over a curb and into a wooded area, police said.

Police said the two incidents were not connected.

The sites are about five miles apart, east of Route 1 and Interstate 95. Apparently by coincidence, the incidents appeared to be close in time; The officer-involved shooting occurred about 5:40 p.m., police said, and the other incident happened about 15 minutes later.

A man who lives in the area where the officer-involved shooting occurred said he heard more than a dozen shots. “I don’t know,” he said. “Fifteen to 20 gunshots . . . rapid.”

He said it sounded as if two guns were involved.

In addition to the police cruiser, houses in the area were struck, police said. No other injuries were reported.