Foreign forces will remain in Afghanistan beyond the May deadline, NATO said