The incident occurred when the officer responded to a reported burglary Friday, WMAQ-TV, Chicago, reported. The magnetic force of the MRI machine pulled the officer's gun away from him.
No injuries were reported.
Carol Stream police got in touch with the manufacturer of the machine for advice on how to extricate the gun from the machine.
Officers were also investigating the burglary.
Selena Gomez drops F-bomb, walks off stage during Jingle Ball performance
Ukrainian protestors topple Lenin statue [VIDEO]