Violent explosions have rocked Bahrain, causing widespread alarm and prompting emergency services to respond.