A gunman is in custody after shots were fired inside a medical building in Texas, leaving a physician and a patient injured on Tuesday afternoon, police said.

The Cedar Hill Police Department said officers were dispatched about 12:15 p.m. for calls of an "active shooter" in the Methodist Family Health Center. When they arrived, they found one victim with a gunshot wound on the ground in front of the clinic.

Authorities said they observed a Black male with a long gun fleeing the scene in a black Chrysler vehicle.

Moments later, the suspect's vehicle was involved in a crash. 

TENNESSEE POLICE FATALLY SHOOT ARMED MAN DURING WELFARE CHECK FOLLOWING THREATS OF SELF-HARM

Methodist Family Health Center exteriors

A suspect has been detained after a shooting Tuesday afternoon at a Cedar Hill medical building, police said. (Google Maps)

In a press conference, Cedar Hill Police Chief Ely Reyes said there were multiple officers on the scene who observed the crash. They observed the suspect with the long gun, and five officers "discharged their firearms at the suspect," police said.

Chief Reyes said that once shot, the suspect was removed from the vehicle and officers began life-saving measures until medics arrives. The suspect was transported to Methodist Dallas Medical Center, where he was in stable but critical condition.

MACHETE ATTACK OUTSIDE SAM'S CLUB IN GEORGIA LEAVES 1 INJURED, POLICE SAY

Suspect's crashed vehicle after the shooting

The suspect who opened fire at a medical building was then involved in a crash in the 700 block of Belt Line Road in Cedar Hill, Texas, on Tuesday, July 25. (Fox 4)

The physical who was injured in the shooting was taken to an area hospital and said to be in stable condition.

A driver involved in the crash that followed the shooting was also taken to an area hospital with minor injures, police said.

Medical personnel at scene of crash following shooting at Methodist Family Health Center

Police respond to a car crash that followed the shooting at Methodist Family Health Center in Texas. (Fox 4)

Chief Reyes said that a criminal investigation will be conducted by the Dallas County Sheriff’s Office and the District Attorney’s office. 

CLICK HERE TO GET THE FOX NEWS APP

Police also said that footage from multiple car and body-worn cameras will be used in the investigation. The officers involved will be placed on routine administrative leave.