Israeli police say they have detained three Hamas lawmakers in Jerusalem .