Gravitational waves from an axion-dark photon system: A lattice study