Drive-by shooting accused granted bail