Smile [Q] Phone restarts

When i connect my pendrive to phone via otg cable it shows blank Usb storage.and when i format it the phone restarts.what to do ?