Earthquake of 5.1 magnitude hits Bay of Bengal