Original: The metal detector worked flawlessly in tests but did not find the assassin's bullet partly because the metal bed frame the President was lying on disturbed the instrument, resulting in static.
Simplified: The metal detector worked, but didn't find the bullet because of the metal bedframe the President was lying on.