The Tate Conjecture for Certain Abelian Varieties over Finite Fields