Police have arrested six men after a drone and packages containing drugs and mobile phones were recovered near a prison.