You can not install a 4 wire dryer cord to fit into a 3 wire receptacle.
Replace the 4 wire cord with w 3 wire cord, connect the bonding strip in the dryer back to the center connetion and then wire the cord with the black and red on the outsides and the white to the middle.
Replace the 4 wire cord with w 3 wire cord, connect the bonding strip in the dryer back to the center connetion and then wire the cord with the black and red on the outsides and the white to the middle.