PESHAWAR, Pakistan — An American armed with a pistol and a 40-inch sword was detained in northern Pakistan and told investigators he was on a solo mission to kill Usama bin Laden, a police officer said Tuesday.