Photoinduced electron-electron pairing in the extended Falicov-Kimball model