Authorities say at least a dozen pirates boarded the ferry on the Jamuna river , northwest of the capital , Dhaka .