Lyapunov-type inequality for a fractional differential equation with fractional boundary conditions