The incident took place in Golra on the outskirts of Islamabad Saturday, Dawn News reported.
Police said the man hired the services of a sex worker and brought her to a friend's house.
However, he was spotted by the people of the area who assembled outside the house and broke into it.
On finding the three people in an objectionable condition, more then 20 people beat the three using iron rods and batons.
However, they later took all the three injured to a hospital, where one of the injured died. The condition of the sex worker was said to be critical.
Police have arrested some of the assailants.
Photos: Kareena Kapoor Khan and Aamir Khan at Mumbai airport
Photos: SRK, wife Gauri, Aishwarya Rai, Shweta Bachchan at Vogue Awards
Photos: Harbhajan Singh-Geeta Basra's TV outing with daughter Hinaya
Photos: Malaika Arora flaunts ripped jeans like a boss!
Photos: Vaani Kapoor, Kriti Sanon, Dia Mirza sizzle on the ramp