Brazil forward Neymar is set to be out for "two to three weeks" and means he will miss friendly matches against Panama and Egypt.