Theory of attosecond transient-absorption spectroscopy of krypton for overlapping pump and probe pulses