I think its something along the lines of mutual induction.
The magnetic field produced by the electromagnet induces eddy currents into the iron bar which has its own magnetic field which effects the coil
When the iron bar is pulled away, there would be a change in magnetic flux (less flux in...