Senator John Kerry of Massachusetts, previously considered a contender for secretary of state, may become the next defense secretary.