Election officials had declared Prime Minister Viktor Yanukovych the winner of the election , prompting massive demonstrations .