A Roxbury man was arrested Wednesday morning after allegedly dragging two Boston Police officers with his car while fleeing from them.

Four officers in total were injured in the incident, authorities said. They were taken to a local hospital and have since been released.

Vincent Weaks, 34, was charged with four counts of assault and battery by means of a dangerous weapon, officials said.

The incident began before 1 a.m., when officers responded to a report of a person with a gun near 7 Stoughton Street in Roxbury.

At the scene, the officers found the suspect parked in his vehicle. When they approached, he tried to flee, authorities said.

Two officers on either side of the vehicle struggled with the suspect, trying to remove the keys from the ignition and subdue the man.

But he was able to shift the vehicle into gear and accelerate away, police said, dragging both officers with him. The officers were thrown from the vehicle about 20 feet away. The driver also hit two other officers who had responded to the call.

Authorities lost sight of the car a few blocks away on Draper Street. Weaks was then apprehended around 10:30 a.m. Wednesday in the area of 49 Greenwood Street in Roxbury.