An American Airlines flight from San Francisco to New York was forced to make an emergency landing in Kansas City on Sunday after an electronic device was found on board.

The device was taped to part of the bathroom.

Upon landing, the plane carrying 215 passengers and nine crew members, both passengers and crew were evacuated and the plane was moved to a secured terminal at the far side of the airport, where it was searched.

The device found on the JFK – bound 767 was initially described by a senior law enforcement official as a “flash drive.”

An preliminary inspection of the device showed it was actually a camera disguised as a flash drive, the officials said.

Security officials, including the FBI in Kansas City, were working to determine who the device belongs to.

No injuries related to the incident were reported.