It is not a good idea to lie. I was dismissed from my last position as I didn't have the right skillset. Initially I felt like a c*** but after I while I realised that it was better that I left.
Message:
you left on good terms voluntarily so why lie. Keep is simple - "not a good fit"