A gunman chased his ex-girlfriend through her office Friday, shooting at her over the cubicles and critically wounding her before fleeing, then turning himself in, authorities said.

Roger Dean Murray surrendered around 4 p.m., about seven hours after the shooting, Broward County sheriff's spokesman Elliott Cohen said. The search continued for a second man who was in the car with Murray and went into the business with him, Cohen said.

Derica Edwards-Clark, 26, was working at Florida Builder Appliances when she was struck by at least two shots in the hip and arm.

Murray, 27, then held the small-caliber semiautomatic handgun to his head and pulled the trigger, but it didn't fire, the sheriff's office said in a statement.

Edwards-Clark was taken to a hospital in critical condition, Pompano Beach city spokeswoman Sandra King said.

Cohen said Murray and the second man show up on surveillance video, which was not immediately released.

"Both of them may have entered the business, but Murray was the gunman," Cohen said.

Murray left the building and drove the car away, with the second suspect in the passenger seat, the statement said. They went to a convenience store, bought beer and walked away, leaving the car behind.

Murray and Edwards-Clark had ended a relationship weeks earlier, authorities said.

Florida Builder Appliances sells kitchen appliances, according to its Web site. Manny Lavernia, the branch manager at another store in Miami, said the company did not want to comment.