Louisville police arrested a man Thursday they say shot his girlfriend in the shoulder and damaged her car during a domestic dispute.

Robert Heim, 34, allegedly was in an argument with his girlfriend at their home near Wilder Park when it turned violent and he grabbed her by the arm and pinned her down on a bed, court documents say.

When the girlfriend's stepbrother told Heim to stop, he allegedly took out a handgun and pointed it at his girlfriend before packing his belongings and leaving. The girlfriend then followed him in her car, and they continued to argue down the street, according to court documents.

Heim then pulled out his gun again, court documents say, and pointed it at her head while saying he would kill her.

More:Are police chases worth the risk? More cities are saying no, but Louisville doubles down

Also:Officials say Iroquois High School principal struck in face by girl during student riot

Heim allegedly pushed her head with the gun several times before kicking her car and punching the passenger's side mirror with his fist and breaking it off the car.

When the girlfriend tried to drive away, court documents say Heim started shooting at her car, hitting the vehicle several times, shooting out the back window and hitting the woman in the left shoulder.

In addition to the gunshot wound, court documents say the girlfriend's head was cut from what police suspected was glass flying from the car. She was taken to the University of Louisville Hospital where she was treated for her injuries and where she identified Heim to police.

Court documents estimate the damage to her car is over $1,000.

Heim was booked at Metro Corrections and is scheduled to be arraigned Friday. He's been charged with second-degree domestic violence assault, first-degree criminal mischief, menacing and third-degree terroristic threatening.

Reach breaking news reporter Sarah Ladd at sladd@courier-journal.com. Follow her on Twitter at @ladd_sarah. Support strong local journalism by subscribing today: courier-journal.com/subscribe.