Suspected would-be killer flew from US for attack that was foiled when pistol jammed, Birmingham Crown Court told