SEATTLE (CBS SF) – A Lufthansa flight headed to Munich from San Francisco International Airport on Thursday night was diverted to Seattle when an electrical smell was detected on the plane, an airline spokesman said.

Lufthansa flight No. 459 left San Francisco around 9 p.m. and, after a few hours, crews got information that there was an electrical smell on the aircraft, Lufthansa spokesman Nils Haupt said.

READ MORE: Marin County Focuses on Restarting Schools at Teacher Vaccination 'Super Pods'

The captain decided to land at Seattle-Tacoma International Airport and the descent was declared an emergency landing.

The plane landed safely in Seattle just before midnight, Haupt said.

Upon landing, three cabin crewmembers and one passenger were treated aboard the aircraft after reporting feeling dizzy, Haupt said.

READ MORE: West Contra Costa Unified School District Partners With Non-Profit Conscious Kitchen To Provide Kids Organic Meals

There were 323 passengers aboard the plane. Immediately after landing, technicians boarded the plane to look into the cause of the smell.

Most passengers were booked on other flights or otherwise provided hotel accommodations.

Haupt said an investigation into the cause of the electrical smell is ongoing.

MORE NEWS: San Jose Police Investigate Saturday Shooting Near Elementary School

Once the issue has been resolved, the aircraft, an Airbus A340-600, will either return to SFO empty or will fly to Frankfurt from Seattle, he said.