51 'terrorist attacks' on Pakistan election day left 12 people dead: Army