A gunman shot dead two Saudi guards and wounded three others at the gate of the royal palace in the Red Sea city of Jeddah on Saturday, the interior ministry said.
Royal guards killed the gunman, identified by the ministry as a 28-year-old Saudi national armed with a Kalashnikov and three grenades.
“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 carried by the official Saudi Press Agency.
“He was immediately dealt with and his cowardly act also resulted in the martyrdom” of two royal guards, it added.
The US embassy in Saudi Arabia had earlier cautioned its citizens over reports of the attack.
“Due to the possibility of ongoing police activity, American citizens are advised to exercise caution when travelling through the area,” the embassy said in a brief statement.