British PM offers sympathy, prayers after "terrible tragedy"