Allies of deposed Prime Minister Thaksin Shinawatra declared victory in Thailand 's first post-coup election , but failed to secure an absolute majority in the parliament according to unofficial results from the Election Commission .