Bahrain has released prominent human rights activist Nabeel Rajab after a court agreed to pass an alternative sentence to the jail term he is currently serving, his lawyer said on Tuesday.