KABUL, Afghanistan — The Taliban assailants apparently thought they were attacking an unprotected Christian-run day care center. But they mistakenly burst into the compound next door, where an American government contractor’s employees were heavily armed and ready, according to accounts that the contractor and the Afghan police gave on Friday of a wild four-hour shootout here.