Putnam-Fuglede type theorem for class Ak operators