An electric bike rider has died after a crash with a BMW outside a pub in Burnley.