Rory McIlroy showed his frustration after a sequence of bad shots resulted in a bogey during his second round at the DP World Tour Championship.