Two gunmen targeting an ethnic party politician after Eid prayers instead killed a police officer and a child, police in Pakistan said.
Police officer Pir Mohammad Shah said politician Khawaja Izharul Hasan escaped uninjured in the attack in the southern port city of Karachi on Saturday.
Mr Shah said one of the attackers was also gunned down by police during a chase.
Mr Hasan belongs to the Muttahida Qaumi Movement, which represents the Urdu speaking population.
He was meeting and greeting people after Eid prayers when gunmen struck in a neighbourhood in north Karachi.
The party was divided after its self-exiled founder, Altaf Hussain, uttered anti-Pakistan remarks in London last year. He is wanted in connection with many criminal cases back home.