Retired Captain Safdar released on bail