NEW DELHI — A shootout between Indian security forces and armed gunmen stretched into its second day on Sunday at the Pathankot air force base in Punjab, near India’s border with Pakistan. At least seven Indian personnel and at least four gunmen have been killed in the fighting so far, officials said.

At least two gunmen were still holding out against the security forces on Sunday, said Rajiv Mehrishi, India’s home secretary, in a televised news conference in New Delhi.

“We are sure that still there are at least two more terrorists as firing has come from two different places,” Mr. Mehrishi said.

The gunmen have also wounded eight air force personnel and 12 members of the National Security Guard, he said.