ISLAMABAD — A hotel catering to foreign visitors in Afghanistan’s capital of Kabul was attacked Monday and three of the assailants were killed, a Taliban official said. Two foreign residents were injured when they jumped out of windows to escape, said Zabihullah Mujahid, the Taliban government’s spokesman. The Emergency Hospital in Kabul said in a tweet that there was an explosion and gunfire near a hotel approximately a kilometer away.