A gunman was killed and two were injured in a shootout near the Israeli consulate in Istanbul, which Turkish President Recep Tayyip Erdogan called a heinous act of terror.

Two policemen were slightly injured in the gun fight, Turkish Interior Minister Mustafa Ciftci said.

Ciftci mentioned the attackers came from the city of Izmit by rental car, with two of them identified as brothers.

The deceased gunman, named Yunus E.S., was connected to a terrorist organization exploiting religion, which is believed to refer to the Islamic State group, though no group has claimed responsibility yet.

We will not allow the climate of trust in Turkey to be damaged by such vile and timed provocations as today's, Erdogan stated.

Initial police reports suggested two attackers had died, but local governor Davut Gul later confirmed only one was killed.

The two injured attackers, Onur Ç and Enes Ç, are brothers. The police officers injured were not in critical condition; one was shot in the leg, and another in the ear.

There was substantial digital communication detected among the neutralized terrorists, indicating further investigations are ongoing.

Governor Gul reported that the assailants used rifles and pistols during the attack. At the time of the incident, no Israeli diplomatic personnel were at the consulate located in Istanbul's business district of Besiktas.

The gunfight occurred in broad daylight, with witnesses reporting loud gunfire lasting 15-20 minutes. Videos shared on social media captured the moment when police shot one attacker.

A witness from Reuters remarked the gunfire was loud and persistent, highlighting the intensity of the incident.

Unverified online footage depicted heavy police presence at the scene, with additional security measures taken around the consulate post-attack.

Currently, there are no Israeli diplomats stationed in Turkey, as the consulate has remained inactive for the past two-and-a-half years due to strained relations over the Gaza situation.

The Turkish justice minister announced an investigation into the attack is underway.