In a ceremony attended by the country’s top leaders, China put its first aircraft carrier into service on Tuesday, a move intended to signal its growing military might as tensions escalate between Beijing and its neighbors over islands in nearby seas.