Police on Friday were investigating what they called a bizarre incident following an overnight burglary at a doctor's office in Carol Stream, Ill., outside Chicago.

An officer responding to the burglary walked into an MRI room at the office on the 600 block of East St. Charles Road Friday morning, the building's owner said. The MRI machine's magnetism pulled away the officer's gun, which became stuck in the machine.

Because there is no way to turn off the magnetism, the gun remained in place and no one was allowed inside the building.

Carol Stream police said no injuries were reported, and the MRI manufacturer was called to assist, the building owner said.

Police said the burglary also is under investigation.

-- NBCChicago.com