A suspect accused of shooting at golfers on a Dallas golf course and hiding from authorities for hours inside a drainage ditch was subdued and taken into custody Wednesday with the help of a police robot.

Kevin Knowles, 31, was taken into custody in connection with the shooting at Grover C. Keeton Golf Course, FOX 4 Dallas-Fort Worth reported, citing police.

Knowles allegedly crashed a stolen car near the golf course before approaching a group of players on the fourth hole, the report said.

"At some point in the transaction they ended up getting shot at by the gentleman, the gentleman stole the golf cart, and he tried to flee to the front entrance," Ty Martinez, a golf pro at the course, told the station.

NEW YORK WOMAN'S DOG SERIOUSLY INJURED AFTER CAR THIEF THROWS IT OUT OF WINDOW ON FREEWAY

police robot shooting in smoke bomgs

A police robot launched smoke bombs into the culvert to force the suspect into the open. (FOX4 Dallas-Fort Worth KDFW)

While police said no one was injured in the shooting, the suspect fled to a culvert where he tried to hide from law enforcement.

A SWAT team arrived and spent hours trying to negotiate with the suspect to turn himself in.

suspect running out of smoke

The suspect exited the culvert and attempted to flee. (FOX4 Dallas-Fort Worth KDFW)

With negotiations appearing unsuccessful, police used a robot to throw a smoke bomb inside the culvert, forcing the suspect to flee into the open. 

UTAH POLICE FIND EIGHT DEAD PEOPLE, INCLUDING 5 MINORS, INSIDE HOME

SWAT team rushing suspect

Members of the SWAT team quickly apprehended the suspect. (FOX4 Dallas-Fort Worth KDFW)

Officers quickly apprehended the suspect and took him to a hospital as a precaution, the report said.

CLICK HERE TO GET THE FOX NEWS APP

No further details about the circumstances of the shooting or the alleged stolen car were immediately released.