Man offered Dubai officer Dh2m bribe to be released, court hears