Controllability results for systems with a nonconvex target