Remove skin from shrimp, leave tails attached. Butterfly shrimp 1/2 way, dust with flour. Mix flour, egg, beer, salt, pepper and sugar creating a batter. Dip shrimp into batter without dipping the tails, then dip into coconut. Refrigerate for 15 minutes minimum. Heat oil to 325 degrees F. Deep fry shrimp.