JEDDAH – A gunman on Saturday drove up to a gate of Al-Salam Palace in the Saudi city of Jeddah and opened fire, killing at least two security guards and wounding three others before being shot dead.

The attacker, identified by the interior ministry as Mansour al-Amri, a 28-year-old Saudi national, was armed with a Kalashnikov rifle and three Molotov cocktails, the Al Jazeera reported.

Amri disembarked from his vehicle at a checkpoint outside the western gate to the royal palace and started shooting, according to the Saudi Press Agency.

“An outpost of the royal guard came under fire by a person who got out of a Hyundai car,” the ministry said in a statement.

Royal guards shot him dead on the spot.

Terror plot to hit Grand Mosque in Makkah foiled, five arrested

An investigation was underway to determine his motive for the attack.

The palace, where the royal family conducts official business during the summer months, is located next to the King Abdulaziz Road and Andalus Road on the waterfront of the Red Sea coastal city.

Saudi King Salman is currently outside the kingdom on a state visit to Russia.

Saudi King Salman takes 1500 entourage, luxury carpets & golden escalator on visit to Moscow (VIDEO)

No group has claimed responsibility yet.

Groups such as al-Qaeda and more recently Islamic State of Iraq and the Levant (ISIL, also known as ISIS) have carried out a number of attacks in Saudi Arabia.

In July this year, Saudi authorities said they foiled an attack on the Grand Mosque in the Muslim holy city of Makkah, which they blamed on ISIL.

Hundreds of Saudi citizens have travelled to Syria to join the group.