Biden says Aug 31 deadline in Afghanistan might have to be extended