ISLAMABAD, Pakistan (CNN) -- A suicide attacker targeting the home of a provincial party leader in Pakistan's North West Frontier Province (NWFP) killed four people and injured seven on Thursday, according to the Interior ministry and local police.
The attack came as Pakistanis celebrate the end of Ramadan.
The suicide attacker was trying to target the chief of the Awami National Party and national assembly senator, Asfandyar Wali Khan, on the second day of the Eid al-Fitr holiday during a gathering at his house in the town of Charsada, near Peshawar.
Eid is a Muslim holiday which marks the end of Ramadan, a month of fasting.
The attacker tried to cross police lines to get close to Khan but was shot and wounded, police sources said.
Despite being wounded the attacker managed to detonate his explosives killing four people -- two police officers, one of Khan's security guards and his friend, a bank manager, who was at the celebration.
Seven others including security personnel and civilians were said to have been injured.
Malik Naveed Khan, the Inspector General of NWFP Police, confirmed the incident was a suicide attack.
A Pakistani Interior Ministry official in Islamabad told CNN that a team of explosives experts had been dispatched to Charsada to assist local police.
Charsada is located approximately 20 miles (30km) west of Peshawar, the provincial capital.
Journalist Janullah Hashimzada in Peshawar, Pakistan contributed to this report.