A moderate 4.7 magnitude earthquake struck Jammu and Kashmir before dawn, prompting brief panic but no reported damage or casualties.