The incident took place around 2:30am Monday.
The victim, Anwar Hossain, was a resident of Atgharia Upazila.
Pabna Police Station OC Haniful Islam said Anwar was heading home at night when the assailants stopped and murdered him.
"We believe they took the motorcycle and fled," he said.
Anwar was a chemistry graduate from Rajshahi University and worked in Square as a pharmacist.