Authorities say an Uber driver fatally shot a man who was allegedly attempting to rob him early Sunday morning.

Aventura Police say an Uber driver in a black Toyota Corolla picked up a passenger from a condo along the William Lehman Causeway at around 5:30 a.m. on Sunday.

As the Corolla headed west on the causeway, a silver Dodge Caravan occupied by two people cut off the Uber driver. The driver of the Caravan jumped out with two guns drawn and attempted to rob the Uber driver.

Aventura police spokesman Chris Goranitis said the Uber driver pulled his own handgun and fired shots that killed the robber.

"The Uber driver was able to fire off some rounds at the suspect who was pronounced deceased on scene," Goranitis said.

The passenger of the caravan got in the driver’s seat and fled.

Goranitis said the Uber driver had a concealed weapons permit. Neither the driver nor his passenger was injured.

Police recovered the suspected getaway car hours after the homicide and have also interviewed a person of interest.

Uber said in a statement that they are aware of the reported incident. According to company's firearms policy, riders and drivers are prohibited from carrying firearms of any kind while in a vehicle and using the app. Violators may lose access to Uber.

Aventura residents who live near the causeway are reacting to the news of the scary encounter.

"You have to be very careful no matter where you are, in any neighborhood. This is a great neighborhood, very safe," said resident Margot Stashower. "The Aventura Police Department is right up the block."

Police have not released any further details on the incident. Check back with NBC 6 for updates.