Finally got it off.. I had to remove the air filter cover and the clamp to take the MAF housing out so that I can access the back of the wire connector. I had to press the white clip to unlock it and then I was able to pull the connector out. However, it turned out that my air filter needed cleaning more than the MAF sensor as there were dried leaf, dead bugs etc stuck in the filter lol.. I wanted to take the pic but didn't have my mobile with me