Mosque attacks 'could happen in UK', says minister