That's just the Jamaican way of waving down a route taxi. If you take a ride through the country you will see many locals doing this as you pass, because they may think your driver is an available route taxi.

No need to worry about this - taxi drivers can easily identify tourists and will beep at you if you are standing on the side of the road to offer you a ride.