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: Urvashi Rautela, Zoya Afroz at an event in Delhi
Photos: Celebs look super sexy in racy gowns at Oscars after-party
Photos: Remembering first President of India - Rajendra Prasad
6 times famous people got into trouble because of number plates
Oscars 2017: Emma Stone, Nicole Kidman, other stars on red carpet