Officers were called to the St Andrew's Quay branch of McDonald's in Hull after reports of gunfire, Humberside police said.
Two people inside a blue Volkswagen Golf were fired at, resulting in the windows of the car being blown out.
Suspects in a grey Volkswagen Golf drove away from the scene before being intercepted and detained by firearms officers following a search that also included police dogs and a police helicopter.
Police said they believed that the suspects and offenders knew each other.
Nobody was injured, including the two people shot at, but one person was being treated for shock at the scene, police said.
One eyewitness passing just after the incident, Paul, told BuzzFeed News there were around six police cars outside McDonald's, and that it looked like the restaurant had been evacuated.
"The entrance to McDonald's is next to a petrol station and is cordoned off – no one is allowed in," he told us. "Traffic was backed up quite badly".
The McDonald's was initially closed following the incident, but had reopened by early Saturday evening.
Police believed this to be an isolated incident. Speaking in a YouTube broadcast on Saturday evening, superintendent Darren Downs urged the public to continue to use the St Andrew's Quay area and to consider it a safe place to visit.
Laura Silver is a reporter for BuzzFeed News and is based in London.
Contact Laura Silver at firstname.lastname@example.org.
Got a confidential tip? Submit it here.