Gently pull the vent pipe away from the wall duct. If your dryer is electric you should be able to push the appliance out of the way without any issues. This will open up more space to work.
Install the dryer vent cap against the side of your house, making sure that its attached pipe fits through the wall opening you have made. Secure the cap with the provided screws, and then caulk ...