Mr. Said had been on the run for five months after killing his parents and two brothers after his father ordered him to wait before marrying his cousin, said Mr. Khan, the police officer. The family had a small house and did not have a separate room to accommodate a married couple, and Mr. Said’s father asked him to wait until he raised the money to build another room.

“Mr. Said could not wait and opened fire on his family, killing his parents and two brothers,” Mr. Khan said.

Mr. Said, believed to be in his mid-20s, resurfaced Sunday at 3:30 a.m. in the village to carry out the killings before escaping again, the authorities said.

The victims were shot in the heads and faces, according to officials at the district hospital where the bodies were taken by neighbors. The eldest male cousin was 23, while the youngest was 12. Naveeda, the woman Mr. Said wanted to marry, was 24, according to police records.

Police officials said it was not immediately clear if Mr. Said acted alone.

“It does not seem to be the work of one person,” Mr. Khan said. “It could be that he had help.”