Painleve analysis for a time-dependent Kadomtsev-Petviashvili equation