You cannot use 'of' instead of 'for' there, since it is not the ward that is being elected. You may replace 'of' with 'for', but then you would have two 'for's, which would tempt me to recast.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.