An Uber driver was shot in Texas after a man likely got the wrong idea about him posing with a firearm, officials said.

The bizarre series of events began when Uber driver Marwin Al-Aloosi, 24, noticed the passenger he was picking up in Dallas had a small case. The passenger told him it was a handgun, and Al-Aloosi asked if he could take a photo with it, according to the Dallas News.

The passenger obliged and Al-Aloosi held the unloaded gun up against his face.

As he was posing, John Beaty, 33, was walking through the parking lot and spotted the gun.

Police said Beaty, who is an Army veteran, thought it was a robbery and fired 15 times at the passenger side of the car.

According to news station KDFW, the shooting left Al-Aloosi with multiple wounds to the chest.

Authorities arrived to the scene to find Beaty attending to Al-Aloosi’s injuries.

“The witness saw Beaty approach the vehicle with a ‘shock look’ and then Beaty assisted to help the witness put pressure on the wounds,” according to the affidavit.

Beaty was arrested on charges of aggravated assault with a deadly weapon. He is being held on $75,000 bond.