Electromagnetic effects induced by a time-dependent axion field