Extensions of abelian varieties defined over a finite field