Atom-atom interaction at the edge of a photonic band gap