Saudi security forces shot and killed a gunman who had stopped his car near the US consulate in Jeddah on Wednesday.
When security authorities saw the man was carrying a weapon, they exchanged fire with him and he was shot dead.
"A person in a car stopped near the American consulate building in Jeddah Governorate and got out of it carrying a firearm in his hand," a spokesman for the Makkah regional police said.
"So security authorities took the initiative to deal with him as required, and the exchange of fire resulted in his death."
A Nepalese security guard at the consulate was also injured and died of his wounds, state news agency SPA reported.
"The US embassy and consulate remain in contact with Saudi authorities as they investigate the incident," a US State Department representative said in a statement.
No Americans were harmed in the incident, the representative said.
Investigations are under way to ascertain the circumstances surrounding the incident.
News agencies contributed to this report
MATCH INFO
Manchester City 1 (Gundogan 56')
Shakhtar Donetsk 1 (Solomon 69')
UAE currency: the story behind the money in your pockets
The bio
Favourite vegetable: Broccoli
Favourite food: Seafood
Favourite thing to cook: Duck l'orange
Favourite book: Give and Take by Adam Grant, one of his professors at University of Pennsylvania
Favourite place to travel: Home in Kuwait.
Favourite place in the UAE: Al Qudra lakes
UAE currency: the story behind the money in your pockets
Dubai Bling season three
Cast: Loujain Adada, Zeina Khoury, Farhana Bodi, Ebraheem Al Samadi, Mona Kattan, and couples Safa & Fahad Siddiqui and DJ Bliss & Danya Mohammed
Rating: 1/5
COMPANY PROFILE
Founders: Sebastian Stefan, Sebastian Morar and Claudia Pacurar
Based: Dubai, UAE
Founded: 2014
Number of employees: 36
Sector: Logistics
Raised: $2.5 million
Investors: DP World, Prime Venture Partners and family offices in Saudi Arabia and the UAE
THE%20SPECS
%3Cp%3EBattery%3A%2060kW%20lithium-ion%20phosphate%3Cbr%3EPower%3A%20Up%20to%20201bhp%3Cbr%3E0%20to%20100kph%3A%207.3%20seconds%3Cbr%3ERange%3A%20418km%3Cbr%3EPrice%3A%20From%20Dh149%2C900%3Cbr%3EAvailable%3A%20Now%3C%2Fp%3E%0A
The specs: 2017 Dodge Ram 1500 Laramie Longhorn
Price, base / as tested: Dhxxx
Engine: 5.7L V8
Transmission: Eight-speed automatic
Power: 395hp @ 5,600rpm
Torque: 556Nm @ 3,950rpm
Fuel economy, combined: 12.7L / 100km
Ordinary Virtues: Moral Order in a Divided World by Michael Ignatieff
Harvard University Press