A knocking sound often occurs when the icemaker is not connected to a water source. The water valve on the icemaker makes a snapping sound when the icemaker needs water. This is normal. When the water is not connected to your icemaker, the sound will be greater -- more like a knock than a snap. The fix for this problem is rather simple. Set the icemaker's signal arm (bail arm) to the up position to turn off the icemaker until the water supply line is attached.
If your icemaker is attached to a water supply line, you may hear the knocking noise if the water valve has failed or the water supply line has a clog. Again, the icemaker is not receiving the water it needs, and you'll likely notice smaller than usual ice cubes or more ice cubes that look incomplete. Contact a repairman to check for blockages in the water supply line and test the icemaker's water valve to ensure it's functioning appropriately.
Sometimes the noise we think is coming from the icemaker arm is actually coming from the icemaker itself. If the unit seems functional and is connected to the water supply, the sound you may be hearing is the ice falling into the storage container at the end of the icemaking cycle. This sound is normal.
Another normal sound you may hear coming from the vicinity of the icemaker arm is the snap of the arm going into the off position when the ice collection bin is full. Some older refrigerator models make an audible snap or click when the icemaker arm snaps into the off position. This sound can be quite loud in quiet environments, particularly at night.